Skip to content

Commit 5dc7bfe

Browse files
committed
Updated Docs
1 parent fc3bc9b commit 5dc7bfe

File tree

2 files changed

+26
-11
lines changed

2 files changed

+26
-11
lines changed

docs/.vuepress/components/PlayGround.vue

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,13 @@
3333
</div>
3434
</div>
3535
</div>
36+
<div class="reset mb-4">
37+
<a @click="onReset"> Reset Default </a>
38+
</div>
3639
<div class="flex items-center justify-between mb-2">
3740
<span class="text-2xl font-bold">Options</span>
3841
<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>
4543
<Dialog v-model="exportDialogVisible">
4644
<pre
4745
class="m-0"
@@ -52,7 +50,11 @@
5250
</Dialog>
5351
</div>
5452
</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>
5658
<div class="grid grid-cols-1 md:grid-cols-3 gap-x-8">
5759
<div class="mb-5 min-w-0 grid">
5860
<div class="mb-2 font-medium">Separator</div>
@@ -186,6 +188,23 @@ export default {
186188
},
187189
onBlur() {
188190
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+
})
189208
}
190209
}
191210
}

docs/guide/play-ground.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
# Playground
22

3-
::: warning
4-
Masking doesn't work with directive
5-
:::
6-
73
<PlayGround/>
84

0 commit comments

Comments
 (0)