2025-02-28 11:49:42 +00:00
|
|
|
<template>
|
2025-03-05 14:26:30 +00:00
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>InputText is used with the <i>v-model</i> property for two-way value binding.</p>
|
|
|
|
</DocSectionText>
|
|
|
|
<div class="card flex justify-center">
|
|
|
|
<InputText v-model="value" />
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
2025-02-28 11:49:42 +00:00
|
|
|
</template>
|
|
|
|
|
2025-02-28 22:59:25 +00:00
|
|
|
<script setup>
|
2025-03-05 14:26:30 +00:00
|
|
|
import InputText from '@/volt/inputtext';
|
2025-02-28 22:59:25 +00:00
|
|
|
import { ref } from 'vue';
|
2025-02-28 11:49:42 +00:00
|
|
|
|
2025-03-05 14:26:30 +00:00
|
|
|
const value = ref(null);
|
|
|
|
|
|
|
|
const code = ref(`
|
|
|
|
<template>
|
|
|
|
<div class="card flex justify-center">
|
|
|
|
<InputText v-model="value" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import InputText from '@/volt/inputtext';
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
const value = ref(null);
|
|
|
|
<\/script>
|
2025-02-28 22:59:25 +00:00
|
|
|
`);
|
2025-02-28 11:49:42 +00:00
|
|
|
</script>
|