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: {
|
|
|
|
basic: `
|
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
|
|
|
options: `
|
|
|
|
<template>
|
|
|
|
<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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<\/script>`,
|
|
|
|
composition: `
|
|
|
|
<template>
|
|
|
|
<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);
|
|
|
|
<\/script>`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|