From 6dd9823b8495252e6d0ba35e6114799321453cbe Mon Sep 17 00:00:00 2001 From: wjt <1797368093@qq.com> Date: 星期三, 26 六月 2024 13:49:33 +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