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

73 lines
1.2 KiB
Vue
Raw Normal View History

2023-05-05 15:01:38 +00:00
<template>
2023-05-11 14:14:31 +00:00
<DocSectionText v-bind="$attrs"></DocSectionText>
2023-05-05 15:01:38 +00:00
<div class="card flex justify-content-center">
<Password
v-model="value"
:pt="{
info: { class: 'font-bold' }
}"
/>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
value: null,
code: {
2023-09-22 12:54:14 +00:00
basic: `
<Password
2023-05-11 14:14:31 +00:00
v-model="value"
:pt="{
info: { class: 'font-bold' }
}"
2023-10-15 09:38:39 +00:00
/>
`,
2023-09-22 12:54:14 +00:00
options: `
<template>
2023-05-05 15:01:38 +00:00
<div class="card flex justify-content-center">
2023-05-11 14:14:31 +00:00
<Password
v-model="value"
:pt="{
info: { class: 'font-bold' }
}"
/>
2023-05-05 15:01:38 +00:00
</div>
</template>
<script>
export default {
data() {
return {
value: null
}
}
};
2023-10-15 09:38:39 +00:00
<\/script>
`,
2023-09-22 12:54:14 +00:00
composition: `
<template>
2023-05-05 15:01:38 +00:00
<div class="card flex justify-content-center">
2023-05-11 14:14:31 +00:00
<Password
v-model="value"
:pt="{
info: { class: 'font-bold' }
}"
/>
2023-05-05 15:01:38 +00:00
</div>
</template>
<script setup>
import { ref } from 'vue';
const value = ref(null);
2023-10-15 09:38:39 +00:00
<\/script>
`
2023-05-05 15:01:38 +00:00
}
};
}
};
</script>