Commit 9ee7afc1 authored by qingwei.li's avatar qingwei.li

TimeSelect: fix maxTime range, fixed #2158

parent 4da8b2a2
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment