2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2023-07-04 09:28:37 +00:00
|
|
|
<p>InputText provides <i>small</i> and <i>large</i> sizes as alternatives to the standard.</p>
|
2023-02-28 08:29:30 +00:00
|
|
|
</DocSectionText>
|
|
|
|
<div class="card flex flex-column align-items-center gap-3">
|
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>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card flex flex-column align-items-center gap-3">
|
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>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card flex flex-column align-items-center gap-3">
|
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>
|