PT code section fix

pull/3958/head
Tuğçe Küçükoğlu 2023-05-11 17:14:31 +03:00
parent 06950ffe25
commit fb3a13f934
3 changed files with 68 additions and 15 deletions

View File

@ -1,7 +1,5 @@
<template> <template>
<DocSectionText v-bind="$attrs"> <DocSectionText v-bind="$attrs"></DocSectionText>
<p>InputMask is used as a controlled input with <i>v-model</i> properties.</p>
</DocSectionText>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<InputMask <InputMask
id="basic" id="basic"
@ -23,11 +21,27 @@ export default {
value: '', value: '',
code: { code: {
basic: ` basic: `
<InputMask id="basic" v-model="value" mask="99-999999" placeholder="99-999999" />`, <InputMask
id="basic"
v-model="value"
mask="99-999999"
placeholder="99-999999"
:pt="{
root: { class: 'border-teal-400' }
}"
/>`,
options: ` options: `
<template> <template>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<InputMask id="basic" v-model="value" mask="99-999999" placeholder="99-999999" /> <InputMask
id="basic"
v-model="value"
mask="99-999999"
placeholder="99-999999"
:pt="{
root: { class: 'border-teal-400' }
}"
/>
</div> </div>
</template> </template>
@ -44,7 +58,15 @@ export default {
composition: ` composition: `
<template> <template>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<InputMask id="basic" v-model="value" mask="99-999999" placeholder="99-999999" /> <InputMask
id="basic"
v-model="value"
mask="99-999999"
placeholder="99-999999"
:pt="{
root: { class: 'border-teal-400' }
}"
/>
</div> </div>
</template> </template>

View File

@ -19,11 +19,23 @@ export default {
value: null, value: null,
code: { code: {
basic: ` basic: `
<InputText type="text" v-model="value" />`, <InputText
v-model="value"
type="text"
:pt="{
root: { class: 'border-teal-400' }
}"
/>`,
options: ` options: `
<template> <template>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<InputText type="text" v-model="value" /> <InputText
v-model="value"
type="text"
:pt="{
root: { class: 'border-teal-400' }
}"
/>
</div> </div>
</template> </template>
@ -40,7 +52,13 @@ export default {
composition: ` composition: `
<template> <template>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<InputText type="text" v-model="value" /> <InputText
v-model="value"
type="text"
:pt="{
root: { class: 'border-teal-400' }
}"
/>
</div> </div>
</template> </template>

View File

@ -1,7 +1,5 @@
<template> <template>
<DocSectionText v-bind="$attrs"> <DocSectionText v-bind="$attrs"></DocSectionText>
<p>Strength meter is displayed as a popup while a value is being entered.</p>
</DocSectionText>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<Password <Password
v-model="value" v-model="value"
@ -20,11 +18,21 @@ export default {
value: null, value: null,
code: { code: {
basic: ` basic: `
<Password v-model="value" />`, <Password
v-model="value"
:pt="{
info: { class: 'font-bold' }
}"
/>`,
options: ` options: `
<template> <template>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<Password v-model="value" /> <Password
v-model="value"
:pt="{
info: { class: 'font-bold' }
}"
/>
</div> </div>
</template> </template>
@ -40,7 +48,12 @@ export default {
composition: ` composition: `
<template> <template>
<div class="card flex justify-content-center"> <div class="card flex justify-content-center">
<Password v-model="value" /> <Password
v-model="value"
:pt="{
info: { class: 'font-bold' }
}"
/>
</div> </div>
</template> </template>