Add new filled otp demo
parent
79cf1d9359
commit
a6a1085301
|
@ -0,0 +1,54 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>Specify the <i>variant</i> property as <i>filled</i> to display the component with a higher visual emphasis than the default <i>outlined</i> style.</p>
|
||||
</DocSectionText>
|
||||
<div class="card flex justify-center">
|
||||
<InputOtp v-model="value" variant="filled" />
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
value: null,
|
||||
code: {
|
||||
basic: `
|
||||
<InputOtp v-model="value" variant="filled" />
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card flex justify-center">
|
||||
<InputOtp v-model="value" variant="filled" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
value: null
|
||||
}
|
||||
}
|
||||
};
|
||||
<\/script>
|
||||
`,
|
||||
composition: `
|
||||
<template>
|
||||
<div class="card flex justify-center">
|
||||
<InputOtp v-model="value" variant="filled" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
|
||||
const value = ref(null);
|
||||
<\/script>
|
||||
`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
|
@ -9,6 +9,7 @@ import ImportDoc from '@/doc/inputotp/ImportDoc.vue';
|
|||
import IntegerOnlyDoc from '@/doc/inputotp/IntegerOnlyDoc.vue';
|
||||
import MaskDoc from '@/doc/inputotp/MaskDoc.vue';
|
||||
import SampleDoc from '@/doc/inputotp/SampleDoc.vue';
|
||||
import FilledDoc from '@/doc/inputotp/FilledDoc.vue';
|
||||
import TemplateDoc from '@/doc/inputotp/TemplateDoc.vue';
|
||||
import PTComponent from '@/doc/inputotp/pt/index.vue';
|
||||
import ThemingDoc from '@/doc/inputotp/theming/index.vue';
|
||||
|
@ -37,6 +38,11 @@ export default {
|
|||
label: 'Integer Only',
|
||||
component: IntegerOnlyDoc
|
||||
},
|
||||
{
|
||||
id: 'filled',
|
||||
label: 'Filled',
|
||||
component: FilledDoc
|
||||
},
|
||||
{
|
||||
id: 'template',
|
||||
label: 'Template',
|
||||
|
|
Loading…
Reference in New Issue