|
18 | 18 | <div class="pt5 nb5" id="basic-vue-autonumeric"> |
19 | 19 | <a href="#basic-vue-autonumeric" :class="headerClasses"> |
20 | 20 | <h2 class="ma0 pb2 f2 fw4 lh-1">Autonumeric component usage examples</h2> |
21 | | - <p class="ma0 lh-copy f6">Vue-Autonumeric as the flexibility and power of its <a href="https://github.com/autoNumeric/autoNumeric">AutoNumeric parent library</a>. It can be configured as you like.</p> |
| 21 | + <p class="ma0 lh-copy f6">Vue-Autonumeric as the flexibility and power of its <a href="https://github.com/autoNumeric/autoNumeric" class="repoLink">AutoNumeric parent library</a>. It can be configured as you like.</p> |
22 | 22 | </a> |
23 | 23 | <div :class="boxClasses" :style="boxStyle"> |
24 | 24 | <div :class="labelClasses">Default vue-autonumeric</div> |
25 | | - <autonumeric :options="''" v-model="autoNumericModel"></autonumeric> |
| 25 | + <vue-autonumeric :options="''" v-model="autoNumericModel"></vue-autonumeric> |
26 | 26 | </div> |
27 | 27 |
|
28 | 28 | <div :class="boxClasses" :style="boxStyle"> |
29 | 29 | <div :class="labelClasses">With the <code>'euro'</code> option</div> |
30 | | - <autonumeric :options="'euro'" v-model="autoNumericModel"></autonumeric> |
| 30 | + <vue-autonumeric :options="'euro'" v-model="autoNumericModel"></vue-autonumeric> |
31 | 31 | </div> |
32 | 32 |
|
33 | 33 | <div :class="boxClasses" :style="boxStyle"> |
34 | 34 | <div :class="labelClasses">With the <code>'dollar'</code> option</div> |
35 | | - <autonumeric :options="'dollar'" v-model="autoNumericModel"></autonumeric> |
| 35 | + <vue-autonumeric :options="'dollar'" v-model="autoNumericModel"></vue-autonumeric> |
36 | 36 | </div> |
37 | 37 |
|
38 | 38 | <div :class="boxClasses" :style="boxStyle"> |
39 | 39 | <div :class="labelClasses">With the <code>'integer'</code> option</div> |
40 | | - <autonumeric :options="'integer'" v-model="autoNumericModel"></autonumeric> |
| 40 | + <vue-autonumeric :options="'integer'" v-model="autoNumericModel"></vue-autonumeric> |
41 | 41 | </div> |
42 | 42 |
|
43 | 43 | <div :class="boxClasses" :style="boxStyle"> |
44 | 44 | <div :class="labelClasses">With the <code>'integerPos'</code> option</div> |
45 | | - <autonumeric :options="'integerPos'" v-model="autoNumericModel"></autonumeric> |
| 45 | + <vue-autonumeric :options="'integerPos'" v-model="autoNumericModel"></vue-autonumeric> |
46 | 46 | </div> |
47 | 47 |
|
48 | 48 | <div :class="boxClasses" :style="boxStyle"> |
49 | 49 | <div :class="labelClasses">With the <code>'French'</code> predefined language and a placeholder</div> |
50 | | - <autonumeric |
| 50 | + <vue-autonumeric |
51 | 51 | :options="'French'" |
52 | 52 | :placeholder="'Enter € here'" |
53 | 53 | v-model="autoNumericModel" |
54 | | - ></autonumeric> |
| 54 | + ></vue-autonumeric> |
55 | 55 | </div> |
56 | 56 |
|
57 | 57 | <div :class="boxClasses" :style="boxStyle"> |
58 | 58 | <div :class="labelClasses">With the <code>'NorthAmerican'</code> predefined language</div> |
59 | | - <autonumeric |
| 59 | + <vue-autonumeric |
60 | 60 | :options="'NorthAmerican'" |
61 | 61 | v-model="autoNumericModel" |
62 | | - ></autonumeric> |
| 62 | + ></vue-autonumeric> |
63 | 63 | </div> |
64 | 64 |
|
65 | 65 | <div :class="boxClasses" :style="boxStyle"> |
|
68 | 68 | decimalCharacter : ',', |
69 | 69 | digitGroupSeparator : '.' |
70 | 70 | }</code></div> |
71 | | - <autonumeric |
| 71 | + <vue-autonumeric |
72 | 72 | :options="{ |
73 | 73 | currencySymbol : 'Ω', |
74 | 74 | decimalCharacter : ',', |
75 | 75 | digitGroupSeparator : '.' |
76 | 76 | }" |
77 | 77 | v-model="autoNumericModel" |
78 | | - ></autonumeric> |
| 78 | + ></vue-autonumeric> |
79 | 79 | </div> |
80 | 80 | </div> |
81 | 81 | </div> |
|
84 | 84 | </template> |
85 | 85 |
|
86 | 86 | <script type="text/babel"> |
87 | | - import Autonumeric from '../src/components/Autonumeric.vue'; |
| 87 | + import VueAutonumeric from '../src/components/VueAutonumeric.vue'; |
88 | 88 |
|
89 | 89 | export default { |
90 | 90 | name : 'app', |
91 | 91 |
|
92 | 92 | components: { |
93 | | - Autonumeric, |
| 93 | + VueAutonumeric, |
94 | 94 | }, |
95 | 95 |
|
96 | 96 | data() { |
|
185 | 185 | border-radius : 3px; |
186 | 186 | background-color : rgba(27, 31, 35, .05); |
187 | 187 | } |
| 188 | +
|
| 189 | + .repoLink { |
| 190 | + text-decoration: none; |
| 191 | + color : #0094ff; |
| 192 | +
|
| 193 | + &:hover { |
| 194 | + text-decoration: underline; |
| 195 | + color : #0068B7; |
| 196 | + } |
| 197 | + } |
188 | 198 | </style> |
0 commit comments