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-09-22 12:54:14 +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-09-22 12:54:14 +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-09-22 12:54:14 +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>
|