We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9f2ad7 commit 7b1f2f0Copy full SHA for 7b1f2f0
uview-ui/components/u-calendar/u-calendar.vue
@@ -288,6 +288,14 @@
288
},
289
init() {
290
let now = new Date();
291
+ let minDate = new Date(this.minDate);
292
+ if (now < minDate) {
293
+ now = minDate;
294
+ }
295
+ let maxDate = new Date(this.maxDate);
296
+ if (now > maxDate) {
297
+ now = maxDate;
298
299
this.year = now.getFullYear();
300
this.month = now.getMonth() + 1;
301
this.day = now.getDate();
0 commit comments