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

83 lines
1.7 KiB
Vue
Raw Normal View History

2023-05-04 14:51:43 +00:00
<template>
<DocSectionText v-bind="$attrs"> </DocSectionText>
<div class="card flex justify-content-center">
<Calendar
v-model="date"
showIcon
:pt="{
input: { class: 'w-16rem' },
dropdownButton: {
root: { class: 'bg-teal-500 border-teal-500' }
}
}"
/>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
date: null,
code: {
2023-08-16 13:58:31 +00:00
basic: `<Calendar
2023-05-04 14:51:43 +00:00
v-model="date"
showIcon
:pt="{
input: { class: 'w-16rem' },
dropdownButton: {
root: { class: 'bg-teal-500 border-teal-500' }
}
}"
/>`,
2023-08-16 13:58:31 +00:00
options: `<template>
2023-05-04 14:51:43 +00:00
<div class="card flex justify-content-center">
<Calendar
v-model="date"
showIcon
:pt="{
input: { class: 'w-16rem' },
dropdownButton: {
root: { class: 'bg-teal-500 border-teal-500' }
}
}"
/>
</div>
</template>
<script>
export default {
data() {
return {
date: null
};
}
};
<\/script>`,
2023-08-16 13:58:31 +00:00
composition: `<template>
2023-05-04 14:51:43 +00:00
<div class="card flex justify-content-center">
<Calendar
v-model="date"
showIcon
:pt="{
input: { class: 'w-16rem' },
dropdownButton: {
root: { class: 'bg-teal-500 border-teal-500' }
}
}"
/>
</div>
</template>
<script setup>
import { ref } from "vue";
const date = ref();
<\/script>`
}
};
}
};
</script>