docs(DatePicker): add is-required prop (#1549)

Co-authored-by: chenying <chenying@addcn.com>
This commit is contained in:
chenying
2024-03-25 19:09:19 +08:00
committed by GitHub
parent 398c5d5dcd
commit c3ac4badbf

View File

@@ -9,7 +9,7 @@ const date = ref(new Date())
<UButton icon="i-heroicons-calendar-days-20-solid" :label="format(date, 'd MMM, yyy')" />
<template #panel="{ close }">
<DatePicker v-model="date" @close="close" />
<DatePicker v-model="date" is-required @close="close" />
</template>
</UPopover>
</template>