2023-05-05 11:30:21 +00:00
|
|
|
<template>
|
2023-05-11 14:14:31 +00:00
|
|
|
<DocSectionText v-bind="$attrs"></DocSectionText>
|
2023-05-05 11:30:21 +00:00
|
|
|
<div class="card flex justify-content-center">
|
|
|
|
<InputMask
|
|
|
|
id="basic"
|
|
|
|
v-model="value"
|
|
|
|
mask="99-999999"
|
|
|
|
placeholder="99-999999"
|
|
|
|
:pt="{
|
|
|
|
root: { class: 'border-teal-400' }
|
|
|
|
}"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
value: '',
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
<InputMask
|
2023-05-11 14:14:31 +00:00
|
|
|
id="basic"
|
|
|
|
v-model="value"
|
|
|
|
mask="99-999999"
|
|
|
|
placeholder="99-999999"
|
|
|
|
:pt="{
|
|
|
|
root: { class: 'border-teal-400' }
|
|
|
|
}"
|
|
|
|
/>`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2023-05-05 11:30:21 +00:00
|
|
|
<div class="card flex justify-content-center">
|
2023-05-11 14:14:31 +00:00
|
|
|
<InputMask
|
|
|
|
id="basic"
|
|
|
|
v-model="value"
|
|
|
|
mask="99-999999"
|
|
|
|
placeholder="99-999999"
|
|
|
|
:pt="{
|
|
|
|
root: { class: 'border-teal-400' }
|
|
|
|
}"
|
|
|
|
/>
|
2023-05-05 11:30:21 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
value: null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<\/script>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2023-05-05 11:30:21 +00:00
|
|
|
<div class="card flex justify-content-center">
|
2023-05-11 14:14:31 +00:00
|
|
|
<InputMask
|
|
|
|
id="basic"
|
|
|
|
v-model="value"
|
|
|
|
mask="99-999999"
|
|
|
|
placeholder="99-999999"
|
|
|
|
:pt="{
|
|
|
|
root: { class: 'border-teal-400' }
|
|
|
|
}"
|
|
|
|
/>
|
2023-05-05 11:30:21 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
const value = ref(null);
|
|
|
|
<\/script>
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|