primevue-mirror/doc/inputtext/pt/PTDoc.vue

76 lines
1.4 KiB
Vue
Raw Normal View History

2023-05-05 12:57:15 +00:00
<template>
<DocSectionText v-bind="$attrs"></DocSectionText>
<div class="card flex justify-content-center">
<InputText
v-model="value"
type="text"
:pt="{
root: { class: 'border-teal-400' }
}"
/>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
value: null,
code: {
2023-09-22 12:54:14 +00:00
basic: `
<InputText
2023-05-11 14:14:31 +00:00
v-model="value"
type="text"
:pt="{
root: { class: 'border-teal-400' }
}"
/>`,
2023-09-22 12:54:14 +00:00
options: `
<template>
2023-05-05 12:57:15 +00:00
<div class="card flex justify-content-center">
2023-05-11 14:14:31 +00:00
<InputText
v-model="value"
type="text"
:pt="{
root: { class: 'border-teal-400' }
}"
/>
2023-05-05 12:57:15 +00:00
</div>
</template>
<script>
export default {
data() {
return {
value: null
}
}
}
<\/script>
`,
2023-09-22 12:54:14 +00:00
composition: `
<template>
2023-05-05 12:57:15 +00:00
<div class="card flex justify-content-center">
2023-05-11 14:14:31 +00:00
<InputText
v-model="value"
type="text"
:pt="{
root: { class: 'border-teal-400' }
}"
/>
2023-05-05 12:57:15 +00:00
</div>
</template>
<script setup>
import { ref } from 'vue';
const value = ref(null);
<\/script>
`
}
};
}
};
</script>