Calendar
Basic Usage
View Source
vue
<script setup lang="ts">
import { UniCalendar } from "unify-ui";
import { ref } from "vue";
const date = ref(new Date());
</script>
<template>
<UniCalendar v-model="date" />
</template>
API
Properties
ts
interface RootProps {
readonly modelValue: Date | null | undefined;
readonly disabledDate?: (date: Date) => boolean;
}
const props = defineProps<RootProps>();
Events
ts
interface RootEmit {
(e: "update:modelValue", value: Date): void;
(e: "select", value: Date): void;
}
const emit = defineEmits<RootEmit>();