feat: add localization support for SingleDatePicker and adjust month selection behavior
This commit is contained in:
parent
ade8eddaf7
commit
0e259b6746
|
@ -8,7 +8,7 @@ const date = ref(new Date())
|
|||
<template>
|
||||
<div>{{date.toDateString()}}</div>
|
||||
<div class="container">
|
||||
<SingleDatePicker v-model="date" />
|
||||
<SingleDatePicker v-model="date" localization="zh-CN" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
})
|
||||
|
||||
const emit = defineEmits(['update:modelValue'])
|
||||
const selectMonth = ref(true)
|
||||
const selectMonth = ref(false)
|
||||
const uniqueId = generateUniqueId()
|
||||
const currentMonth = ref(new Date().getMonth())
|
||||
const currentYear = ref(new Date().getFullYear())
|
||||
|
|
Loading…
Reference in New Issue
Block a user