@@ -34,6 +34,8 @@ <h2 class="subtitle">
34
34
< vue-numeric
35
35
class ="input is-large "
36
36
v-model ="money "
37
+ :allow-clear ="allowClear "
38
+ :empty-value ="emptyValue "
37
39
:min ="minValue "
38
40
:max ="maxValue "
39
41
:currency ="currency "
@@ -77,6 +79,12 @@ <h1 class="title is-4">
77
79
< input class ="input " type ="number " v-model.number ="decimals ">
78
80
</ p >
79
81
</ div >
82
+ < div class ="column is-12 ">
83
+ < p class ="control ">
84
+ < label class ="label "> Empty Value </ label >
85
+ < input class ="input " type ="text " v-model ="emptyValue ">
86
+ </ p >
87
+ </ div >
80
88
< div class ="column is-12 ">
81
89
< label class ="label "> Separator </ label >
82
90
< p class ="control ">
@@ -100,6 +108,12 @@ <h1 class="title is-4">
100
108
Read Only
101
109
</ p >
102
110
</ div >
111
+ < div class ="column is-12 ">
112
+ < p class ="control ">
113
+ < input type ="checkbox " v-model ="allowClear ">
114
+ Allow clear
115
+ </ p >
116
+ </ div >
103
117
</ div >
104
118
</ div >
105
119
@@ -132,8 +146,8 @@ <h1 class="title is-4">
132
146
</ div >
133
147
134
148
< script src ="https://unpkg.com/accounting-js "> </ script >
135
- < script src ="https://unpkg.com/vue "> </ script >
136
- < script src ="https://unpkg.com/ vue-numeric "> </ script >
149
+ < script src ="https://unpkg.com/vue@2.6.14 "> </ script >
150
+ < script src ="../dist/ vue-numeric.min.js "> </ script >
137
151
138
152
< script >
139
153
Vue . use ( VueNumeric . default )
@@ -143,6 +157,8 @@ <h1 class="title is-4">
143
157
144
158
data : {
145
159
money : 1000 ,
160
+ allowClear : true ,
161
+ emptyValue : '' ,
146
162
minValue : 0 ,
147
163
maxValue : 999999 ,
148
164
currency : '$' ,
0 commit comments