|
@@ -22,11 +22,7 @@ const title=ref('选择日期')
|
|
|
const today = new Date()
|
|
const today = new Date()
|
|
|
const currentDate = ref([today.getFullYear(), today.getMonth() + 1, today.getDate()])
|
|
const currentDate = ref([today.getFullYear(), today.getMonth() + 1, today.getDate()])
|
|
|
// 最小日期为当前日期前三年
|
|
// 最小日期为当前日期前三年
|
|
|
-const minDate = computed(() => {
|
|
|
|
|
- const date = new Date(today)
|
|
|
|
|
- date.setFullYear(today.getFullYear() - 20) // 当前日期减去3年
|
|
|
|
|
- return date
|
|
|
|
|
-})
|
|
|
|
|
|
|
+const minDate = new Date(2000, 0, 1)
|
|
|
// 最大日期为当前日期后8年
|
|
// 最大日期为当前日期后8年
|
|
|
const maxDate = computed(() => {
|
|
const maxDate = computed(() => {
|
|
|
const date = new Date(today)
|
|
const date = new Date(today)
|