mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-03 21:57:58 +01:00
docs(DatePicker): add is-required prop (#1549)
Co-authored-by: chenying <chenying@addcn.com>
This commit is contained in:
@@ -9,7 +9,7 @@ const date = ref(new Date())
|
|||||||
<UButton icon="i-heroicons-calendar-days-20-solid" :label="format(date, 'd MMM, yyy')" />
|
<UButton icon="i-heroicons-calendar-days-20-solid" :label="format(date, 'd MMM, yyy')" />
|
||||||
|
|
||||||
<template #panel="{ close }">
|
<template #panel="{ close }">
|
||||||
<DatePicker v-model="date" @close="close" />
|
<DatePicker v-model="date" is-required @close="close" />
|
||||||
</template>
|
</template>
|
||||||
</UPopover>
|
</UPopover>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user