Skip to content

Commit 60a3dd2

Browse files
committed
fix(date-picker): min and max default month to right value
1 parent 0fa170b commit 60a3dd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/date-picker/date-picker.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@
6969
min: {
7070
type: [Date, Array],
7171
default() {
72-
return new Date(2010, 1, 1)
72+
return new Date(2010, 0, 1)
7373
}
7474
},
7575
max: {
7676
type: [Date, Array],
7777
default() {
78-
return new Date(2020, 12, 31)
78+
return new Date(2020, 11, 31)
7979
}
8080
},
8181
startColumn: {

0 commit comments

Comments
 (0)