|
9 | 9 | </m-typo-body> |
10 | 10 | </m-layout-grid-cell> |
11 | 11 | <m-layout-grid-cell :span="2"> |
12 | | - <m-text-field v-model="text"> |
13 | | - Textfield |
| 12 | + <m-text-field id="textfield1"> |
| 13 | + <m-floating-label for="textfield1">Textfield</m-floating-label> |
14 | 14 | <m-line-ripple slot="bottomLine"/> |
15 | 15 | </m-text-field> |
16 | 16 | </m-layout-grid-cell> |
17 | 17 | <m-layout-grid-cell :span="2"> |
18 | | - <m-text-field v-model="pw" type="password" required minlength="8" aria-controls="pw-validation"> |
19 | | - Password |
| 18 | + <m-text-field type="password" id="textfield2" required minlength="8" aria-controls="pw-validation"> |
| 19 | + <m-floating-label for="textfield2">Password</m-floating-label> |
20 | 20 | <m-line-ripple slot="bottomLine"/> |
21 | 21 | </m-text-field> |
22 | 22 | <m-text-field-helptext id="pw-validation"> |
|
25 | 25 | </m-layout-grid-cell> |
26 | 26 | <m-layout-grid-cell :span="8" /> |
27 | 27 | <m-layout-grid-cell :span="2"> |
28 | | - <m-text-field v-model="text" box> |
29 | | - Textfield |
| 28 | + <m-text-field |
| 29 | + box |
| 30 | + id="textfield3"> |
| 31 | + <m-floating-label for="textfield3">Textfield</m-floating-label> |
30 | 32 | </m-text-field> |
31 | 33 | </m-layout-grid-cell> |
32 | 34 | <m-layout-grid-cell :span="2"> |
33 | 35 | <m-text-field |
34 | | - v-model="text" |
35 | | - box> |
| 36 | + box |
| 37 | + id="textfield4"> |
36 | 38 | <m-icon |
37 | 39 | slot="leadingIcon" |
38 | 40 | icon="person"/> |
39 | | - Textfield |
| 41 | + <m-floating-label for="textfield4">Textfield</m-floating-label> |
40 | 42 | </m-text-field> |
41 | 43 | </m-layout-grid-cell> |
42 | 44 | <m-layout-grid-cell :span="2"> |
43 | 45 | <m-text-field |
44 | | - v-model="text" |
45 | | - box> |
| 46 | + box |
| 47 | + id="textfield5"> |
46 | 48 | <m-icon |
47 | 49 | slot="trailingIcon" |
48 | 50 | icon="person"/> |
49 | | - Textfield |
| 51 | + <m-floating-label for="textfield5">Textfield</m-floating-label> |
50 | 52 | </m-text-field> |
51 | 53 | </m-layout-grid-cell> |
52 | 54 | <m-layout-grid-cell :span="12"> |
53 | | - <m-text-field v-model="text" placeholder="Fullwidth" full-width> |
| 55 | + <m-text-field placeholder="Fullwidth" full-width> |
54 | 56 | <m-line-ripple slot="bottomLine"/> |
55 | 57 | </m-text-field> |
56 | 58 | </m-layout-grid-cell> |
57 | 59 | <m-layout-grid-cell :span="12"> |
58 | | - <m-text-field v-model="text" textarea> |
59 | | - Textarea |
| 60 | + <m-text-field |
| 61 | + textarea |
| 62 | + id="textfield6"> |
| 63 | + <m-floating-label for ="textfield6">Textarea</m-floating-label> |
60 | 64 | </m-text-field> |
61 | 65 | </m-layout-grid-cell> |
62 | 66 | <m-layout-grid-cell :span="12"> |
63 | | - <m-text-field v-model="text" outlined> |
64 | | - Outlined |
| 67 | + <m-text-field |
| 68 | + outlined |
| 69 | + id="textfield7"> |
| 70 | + <m-floating-label for="textfield7">Outlined</m-floating-label> |
65 | 71 | </m-text-field> |
66 | 72 | </m-layout-grid-cell> |
67 | 73 | </m-layout-grid-inner> |
68 | 74 | </template> |
69 | 75 |
|
70 | 76 | <script> |
71 | 77 | import Vue from 'vue' |
| 78 | +import FloatingLabel from '../../dist/floating-label' |
72 | 79 | import LineRipple from '../../dist/line-ripple' |
73 | 80 | import Icon from '../../dist/icon' |
74 | 81 | import Textfield from '../../dist/textfield' |
75 | 82 |
|
| 83 | +Vue.use(FloatingLabel) |
76 | 84 | Vue.use(LineRipple) |
77 | 85 | Vue.use(Icon) |
78 | 86 | Vue.use(Textfield) |
79 | 87 |
|
80 | 88 | export default { |
81 | | - data () { |
82 | | - return { |
83 | | - text: '', |
84 | | - pw: '' |
85 | | - } |
86 | | - } |
| 89 | +
|
87 | 90 | } |
88 | 91 | </script> |
89 | 92 |
|
90 | 93 | <style lang="scss"> |
| 94 | +@import "../../dist/floating-label/styles"; |
91 | 95 | @import "../../dist/line-ripple/styles"; |
92 | 96 | @import "../../dist/textfield/styles"; |
93 | 97 | </style> |
0 commit comments