From 244d89b41c0e0e995d38f635a126a0959b9ba25b Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期二, 25 六月 2024 18:16:42 +0800 Subject: [PATCH] 问题处理 --- uni_modules/yt-dateTimePicker/components/yt-dateTimePicker/yt-dateTimePicker.vue | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/uni_modules/yt-dateTimePicker/components/yt-dateTimePicker/yt-dateTimePicker.vue b/uni_modules/yt-dateTimePicker/components/yt-dateTimePicker/yt-dateTimePicker.vue index 4e32bc2..ef1527f 100644 --- a/uni_modules/yt-dateTimePicker/components/yt-dateTimePicker/yt-dateTimePicker.vue +++ b/uni_modules/yt-dateTimePicker/components/yt-dateTimePicker/yt-dateTimePicker.vue @@ -53,6 +53,14 @@ type: Number, default: 2000, }, + startMonth: { + type: Number, + default: 0 + }, + startDay: { + type: Number, + default: 0 + }, endYear: { type: Number, default: 2099, @@ -68,7 +76,7 @@ timeInit: { type: String, default: '', //new Date('2023-5-20').valueOf() - }, + } }, data() { @@ -132,6 +140,7 @@ initMonths() { const months = []; + for (let month = 1; month <= 12; month++) { months.push(month); if (this.currentDatetime.getMonth() + 1 === month) { -- Gitblit v1.9.1