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

67 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-08-16 13:58:31 +00:00
basic: `<Password
2023-05-11 14:14:31 +00:00
v-model="value"
:pt="{
info: { class: 'font-bold' }
}"
/>`,
2023-08-16 13:58:31 +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
}
}
};
<\/script>`,
2023-08-16 13:58:31 +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);
<\/script>`
}
};
}
};
</script>