Update SizesDoc.vue

pull/4107/head
Tuğçe Küçükoğlu 2023-07-04 12:28:37 +03:00
parent 019f1607e9
commit 0f18af1887
1 changed files with 9 additions and 9 deletions

View File

@ -1,11 +1,11 @@
<template> <template>
<DocSectionText v-bind="$attrs"> <DocSectionText v-bind="$attrs">
<p>Apply <i>.p-inputtext-sm</i> to reduce the size of the input element or <i>.p-inputtext-lg</i> to enlarge it.</p> <p>InputText provides <i>small</i> and <i>large</i> sizes as alternatives to the standard.</p>
</DocSectionText> </DocSectionText>
<div class="card flex flex-column align-items-center gap-3"> <div class="card flex flex-column align-items-center gap-3">
<InputText v-model="value1" type="text" class="p-inputtext-sm" placeholder="Small" /> <InputText v-model="value1" type="text" size="small" placeholder="Small" />
<InputText v-model="value2" type="text" placeholder="Normal" /> <InputText v-model="value2" type="text" placeholder="Normal" />
<InputText v-model="value3" type="text" class="p-inputtext-lg" placeholder="Large" /> <InputText v-model="value3" type="text" size="large" placeholder="Large" />
</div> </div>
<DocSectionCode :code="code" /> <DocSectionCode :code="code" />
</template> </template>
@ -19,15 +19,15 @@ export default {
value3: null, value3: null,
code: { code: {
basic: ` basic: `
<InputText v-model="value1" type="text" class="p-inputtext-sm" placeholder="Small" /> <InputText v-model="value1" type="text" size="small" placeholder="Small" />
<InputText v-model="value2" type="text" placeholder="Normal" /> <InputText v-model="value2" type="text" placeholder="Normal" />
<InputText v-model="value3" type="text" class="p-inputtext-lg" placeholder="Large" />`, <InputText v-model="value3" type="text" size="large" placeholder="Large" />`,
options: ` options: `
<template> <template>
<div class="card flex flex-column align-items-center gap-3"> <div class="card flex flex-column align-items-center gap-3">
<InputText v-model="value1" type="text" class="p-inputtext-sm" placeholder="Small" /> <InputText v-model="value1" type="text" size="small" placeholder="Small" />
<InputText v-model="value2" type="text" placeholder="Normal" /> <InputText v-model="value2" type="text" placeholder="Normal" />
<InputText v-model="value3" type="text" class="p-inputtext-lg" placeholder="Large" /> <InputText v-model="value3" type="text" size="large" placeholder="Large" />
</div> </div>
</template> </template>
@ -45,9 +45,9 @@ export default {
composition: ` composition: `
<template> <template>
<div class="card flex flex-column align-items-center gap-3"> <div class="card flex flex-column align-items-center gap-3">
<InputText v-model="value1" type="text" class="p-inputtext-sm" placeholder="Small" /> <InputText v-model="value1" type="text" size="small" placeholder="Small" />
<InputText v-model="value2" type="text" placeholder="Normal" /> <InputText v-model="value2" type="text" placeholder="Normal" />
<InputText v-model="value3" type="text" class="p-inputtext-lg" placeholder="Large" /> <InputText v-model="value3" type="text" size="large" placeholder="Large" />
</div> </div>
</template> </template>