DatePicker
Basic Usage
View Source
vue
<script setup lang="ts">
import { ref } from "vue";
import { UniDatePicker } from "unify-ui";
const date = ref();
</script>
<template>
<UniDatePicker v-model="date" />
</template>
API
Properties
ts
defineProps<{
modelValue: Date | undefined;
}>();
Events
ts
const emits = defineEmits<{
(e: "update:modelValue", value: Date): void;
}>();