File tree Expand file tree Collapse file tree 2 files changed +26
-11
lines changed Expand file tree Collapse file tree 2 files changed +26
-11
lines changed Original file line number Diff line number Diff line change 33
33
</div >
34
34
</div >
35
35
</div >
36
+ <div class =" reset mb-4" >
37
+ <a @click =" onReset" > Reset Default </a >
38
+ </div >
36
39
<div class =" flex items-center justify-between mb-2" >
37
40
<span class =" text-2xl font-bold" >Options</span >
38
41
<div >
39
- <button
40
- class =" transition-all bg-white hover:bg-gray-100 text-gray-800 font-semibold text-sm py-2 px-4 border border-gray-300 rounded shadow focus:outline-none focus:border-primary focus:ring focus:ring-primary focus:ring-opacity-50"
41
- @click =" exportDialogVisible = true"
42
- >
43
- Export
44
- </button >
42
+ <button @click =" exportDialogVisible = true" >Export</button >
45
43
<Dialog v-model =" exportDialogVisible" >
46
44
<pre
47
45
class =" m-0"
52
50
</Dialog >
53
51
</div >
54
52
</div >
55
- <hr class =" mb-8" />
53
+ <hr />
54
+ <div class =" custom-container warning" >
55
+ <p class =" custom-container-title" >WARNING</p >
56
+ <p >Masking doesn't work with directive</p >
57
+ </div >
56
58
<div class =" grid grid-cols-1 md:grid-cols-3 gap-x-8" >
57
59
<div class =" mb-5 min-w-0 grid" >
58
60
<div class =" mb-2 font-medium" >Separator</div >
@@ -186,6 +188,23 @@ export default {
186
188
},
187
189
onBlur () {
188
190
console .log (' onBlur' , arguments )
191
+ },
192
+ onReset () {
193
+ Object .assign (this , {
194
+ price: 1234.567 ,
195
+ priceDirective: 1234.567 ,
196
+ config: {
197
+ decimal: ' ,' ,
198
+ separator: ' .' ,
199
+ prefix: ' Rs.' ,
200
+ suffix: ' ' ,
201
+ precision: 2 ,
202
+ nullValue: ' ' ,
203
+ inputmode: ' numeric' ,
204
+ masked: false ,
205
+ reverseFill: false
206
+ }
207
+ })
189
208
}
190
209
}
191
210
}
Original file line number Diff line number Diff line change 1
1
# Playground
2
2
3
- ::: warning
4
- Masking doesn't work with directive
5
- :::
6
-
7
3
<PlayGround />
8
4
You can’t perform that action at this time.
0 commit comments