TimePicker: fix maxtime over the mintime will cover mintime, fixed 894

pull/911/head
qingwei.li 2016-11-08 16:30:25 +08:00
parent 947b837ffa
commit 8ac1ce0737
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,11 @@
## 更新日志
### 1.0.0
*2016-11-9*
- 修复 TimePicker 选择范围时结束时间小于开始时间会重置开始时间, #894
- 修复结合 `vue-i18n` 使用时会提示不能覆盖 `$t` 方法的问题
### 1.0.0-rc.9
*2016-11-07*

View File

@ -132,6 +132,7 @@
},
handleChange() {
if (this.minTime > this.maxTime) return;
this.$refs.minSpinner.selectableRange = [[MIN_TIME, this.maxTime]];
this.$refs.maxSpinner.selectableRange = [[this.minTime, MAX_TIME]];
this.handleConfirm(true);