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 a0b1e5c commit 908f7deCopy full SHA for 908f7de
example/components/date-picker.vue
@@ -132,7 +132,13 @@
132
if (findIndex !== -1) {
133
this.tempIndex[2] = findIndex
134
} else {
135
- this.day = this.day < this.days[0].value ? this.days[0].value : this.days[this.days.length - 1].value
+ if (this.day < this.days[0].value) {
136
+ this.day = this.days[0].value
137
+ this.tempIndex[2] = 0
138
+ } else {
139
+ this.day = this.days[this.days.length - 1].value
140
+ this.tempIndex[2] = this.days.length - 1
141
+ }
142
}
143
144
this.dateData = [this.years, this.months, this.days]
0 commit comments