mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 07:53:48 +09:00
first
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
---
|
||||
state:
|
||||
value: ''
|
||||
---
|
||||
|
||||
### VIMaskInput
|
||||
|
||||
Vuero ships with the `<VIMaskInput />` component, a wrapper arround the great
|
||||
[imask javascript library](https://imask.js.org/).
|
||||
Check the code for more details.
|
||||
|
||||
<!--code-->
|
||||
|
||||
```vue
|
||||
<script setup lang="ts">
|
||||
|
||||
const value = ref('')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VField v-slot="{ id }">
|
||||
<VControl>
|
||||
<VIMaskInput
|
||||
:id="id"
|
||||
v-model="value"
|
||||
autocomplete="cc-csc"
|
||||
class="input"
|
||||
:options="{
|
||||
mask: '000',
|
||||
}"
|
||||
placeholder="3 digits code"
|
||||
/>
|
||||
</VControl>
|
||||
</VField>
|
||||
</template>
|
||||
```
|
||||
|
||||
<!--/code-->
|
||||
|
||||
<!--example-->
|
||||
|
||||
<VField v-slot="{ id }">
|
||||
<VControl>
|
||||
<v-i-mask-input
|
||||
:id="id"
|
||||
v-model="frontmatter.state.value"
|
||||
autocomplete="cc-csc"
|
||||
class="input"
|
||||
:options="{
|
||||
mask: '000',
|
||||
}"
|
||||
placeholder="3 digits code"
|
||||
/>
|
||||
</VControl>
|
||||
</VField>
|
||||
|
||||
<!--/example-->
|
||||
Reference in New Issue
Block a user