2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2024-10-25 20:13:22 +00:00
|
|
|
<p>InputText provides <i>small</i> and <i>large</i> sizes as alternatives to the base.</p>
|
2023-02-28 08:29:30 +00:00
|
|
|
</DocSectionText>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex flex-col items-center gap-4">
|
2023-07-04 09:28:37 +00:00
|
|
|
<InputText v-model="value1" type="text" size="small" placeholder="Small" />
|
2023-02-28 08:29:30 +00:00
|
|
|
<InputText v-model="value2" type="text" placeholder="Normal" />
|
2023-07-04 09:28:37 +00:00
|
|
|
<InputText v-model="value3" type="text" size="large" placeholder="Large" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
value1: null,
|
|
|
|
value2: null,
|
|
|
|
value3: null,
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
<InputText v-model="value1" type="text" size="small" placeholder="Small" />
|
2023-02-28 08:29:30 +00:00
|
|
|
<InputText v-model="value2" type="text" placeholder="Normal" />
|
2023-10-15 09:38:39 +00:00
|
|
|
<InputText v-model="value3" type="text" size="large" placeholder="Large" />
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex flex-col items-center gap-4">
|
2023-07-04 09:28:37 +00:00
|
|
|
<InputText v-model="value1" type="text" size="small" placeholder="Small" />
|
2023-02-28 08:29:30 +00:00
|
|
|
<InputText v-model="value2" type="text" placeholder="Normal" />
|
2023-07-04 09:28:37 +00:00
|
|
|
<InputText v-model="value3" type="text" size="large" placeholder="Large" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
value1: null,
|
|
|
|
value2: null,
|
|
|
|
value3: null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2024-05-20 12:14:38 +00:00
|
|
|
<div class="card flex flex-col items-center gap-4">
|
2023-07-04 09:28:37 +00:00
|
|
|
<InputText v-model="value1" type="text" size="small" placeholder="Small" />
|
2023-02-28 08:29:30 +00:00
|
|
|
<InputText v-model="value2" type="text" placeholder="Normal" />
|
2023-07-04 09:28:37 +00:00
|
|
|
<InputText v-model="value3" type="text" size="large" placeholder="Large" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
const value1 = ref(null);
|
|
|
|
const value2 = ref(null);
|
|
|
|
const value3 = ref(null);
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`
|
2023-02-28 08:29:30 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|