mirror of
https://github.com/nuxt/ui.git
synced 2026-09-14 19:51:10 +08:00
dabc4f85ab
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
12 lines
347 B
Vue
12 lines
347 B
Vue
<script setup lang="ts">
|
|
import { CalendarDate } from '@internationalized/date'
|
|
|
|
const modelValue = shallowRef(new CalendarDate(2023, 9, 10))
|
|
const minDate = new CalendarDate(2023, 9, 1)
|
|
const maxDate = new CalendarDate(2023, 9, 30)
|
|
</script>
|
|
|
|
<template>
|
|
<UInputDate v-model="modelValue" :min-value="minDate" :max-value="maxDate" />
|
|
</template>
|