This repository was archived by the owner on Apr 25, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,9 @@ You may prefer to explicitly import the plugin and use it inside your components
46
46
47
47
``` vue
48
48
<template>
49
- <div>
50
- <float-label>
51
- ...
52
- </float-label>
53
- </div>
49
+ <float-label>
50
+ ...
51
+ </float-label>
54
52
</template>
55
53
56
54
<script>
@@ -64,9 +62,33 @@ export default {
64
62
</script>
65
63
```
66
64
65
+ ### CDN
66
+
67
+ Load script and stylesheet files from CDN:
68
+
69
+ ``` html
70
+ <!DOCTYPE html>
71
+ <html lang =" en" >
72
+ <head >
73
+ <link rel =" stylesheet" href =" //rawgit.com/bkzl/vue-float-label/v1.0.1/dist/vue-float-label.css" >
74
+ </head >
75
+ <body >
76
+ <div id =" root" ></div >
77
+ <script src =" //cdnjs.cloudflare.com/ajax/libs/vue/2.2.1/vue.min.js" ></script >
78
+ <script src =" //rawgit.com/bkzl/vue-float-label/v1.0.1/dist/vue-float-label.js" ></script >
79
+ <script >
80
+ new Vue ({
81
+ el: ' #root' ,
82
+ template: ' <float-label>...</float-label>'
83
+ })
84
+ </script >
85
+ </body >
86
+ </html >
87
+ ```
88
+
67
89
## Usage
68
90
69
- Wrap text/email/password input or textarea:
91
+ Wrap text/email/password input or textarea with ` <float-label> ` :
70
92
71
93
``` html
72
94
<float-label >
You can’t perform that action at this time.
0 commit comments