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

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