mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 12:18:46 +08:00
Merge pull request #2177 from QingWei-Li/fix/date-select
TimeSelect: fix maxTime range, fixed #2158
This commit is contained in:
commit
661dc09002
@ -124,7 +124,7 @@
|
||||
result.push({
|
||||
value: current,
|
||||
disabled: compareTime(current, this.minTime || '-1:-1') <= 0 ||
|
||||
compareTime(current, this.maxTime || '100:100') > 0
|
||||
compareTime(current, this.maxTime || '100:100') >= 0
|
||||
});
|
||||
current = nextTime(current, step);
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ describe('TimeSelect', () => {
|
||||
setTimeout(_ => {
|
||||
const elm = picker.picker.$el.querySelector('.disabled');
|
||||
|
||||
expect(elm.textContent).to.equal('15:00');
|
||||
expect(elm.textContent).to.equal('14:30');
|
||||
destroyVM(vm);
|
||||
done();
|
||||
}, 50);
|
||||
|
Loading…
Reference in New Issue
Block a user