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 7b1f2f0 commit 6d3bc51Copy full SHA for 6d3bc51
uview-ui/components/u-calendar/u-calendar.vue
@@ -289,13 +289,9 @@
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
+ if (now < minDate) now = minDate;
+ if (now > maxDate) now = maxDate;
299
this.year = now.getFullYear();
300
this.month = now.getMonth() + 1;
301
this.day = now.getDate();
@@ -644,4 +640,4 @@
644
640
}
645
641
646
642
647
-</style>
643
+</style>
0 commit comments