-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
date-range support select reverse #8156
Conversation
|
||
this.$emit('pick', { minDate, maxDate: this.maxDate }, false); | ||
this.$emit('pick', { minDate, maxDate: this.minDate }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is false
removed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这是第二次点击了,已经有了minDate了,现在的newDate比minDate小(也就是往前选日期)。现在element只支持往后选择日期区间,没法往前选
建议给这个情景写测试代码 |
@wacky6 除了测试以外,这个 PR 还有其他问题吗? |
我在本地跑了一下,基本功能没什么问题。 |
CI 的 badge 应该 bug 了没同步过来。这个功能的测试 merge 进去了我再补吧 |
好的,拜托了。我这边先合了。 |
this is a regression introduced in pr ElemeFE#8156, which allows disabled date to be highlighted. Also simplifies handleClick's implementation to avoid DOM operations.
this is a regression introduced in pr ElemeFE#8156, which allows disabled date to be highlighted. Also simplifies handleClick's implementation to avoid DOM operations.
* date-table: simplify implementation, fix #12980 * date-table: remove rangeState's row and column * date-table: fix disabled cell highlight this is a regression introduced in pr #8156, which allows disabled date to be highlighted. Also simplifies handleClick's implementation to avoid DOM operations.
…lemeFE#13374) * date-table: simplify implementation, fix ElemeFE#12980 * date-table: remove rangeState's row and column * date-table: fix disabled cell highlight this is a regression introduced in pr ElemeFE#8156, which allows disabled date to be highlighted. Also simplifies handleClick's implementation to avoid DOM operations.
Please make sure these boxes are checked before submitting your PR, thank you!
dev
branch.日期区间选择天的时候,可以往前选