Skip to content
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

Merged
merged 1 commit into from
Mar 6, 2018
Merged

date-range support select reverse #8156

merged 1 commit into from
Mar 6, 2018

Conversation

zhuzhuaicoding
Copy link
Contributor

@zhuzhuaicoding zhuzhuaicoding commented Nov 10, 2017

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow Element's contributing guide (中文 | English).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer relative issues for you PR.

日期区间选择天的时候,可以往前选


this.$emit('pick', { minDate, maxDate: this.maxDate }, false);
this.$emit('pick', { minDate, maxDate: this.minDate });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is false removed ?

Copy link
Contributor Author

@zhuzhuaicoding zhuzhuaicoding Nov 16, 2017

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
Copy link
Contributor

wacky6 commented Nov 25, 2017

建议给这个情景写测试代码

@Leopoldthecoder
Copy link
Contributor

@wacky6 除了测试以外,这个 PR 还有其他问题吗?

@wacky6
Copy link
Contributor

wacky6 commented Mar 6, 2018

我在本地跑了一下,基本功能没什么问题。
如果有的话( = 测试没覆盖到),等发现了在修吧。

@wacky6
Copy link
Contributor

wacky6 commented Mar 6, 2018

CI 的 badge 应该 bug 了没同步过来。这个功能的测试 merge 进去了我再补吧

@Leopoldthecoder
Copy link
Contributor

好的,拜托了。我这边先合了。

@Leopoldthecoder Leopoldthecoder merged commit 9d6d0d6 into ElemeFE:dev Mar 6, 2018
wacky6 added a commit to wacky6/element that referenced this pull request Nov 10, 2018
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.
wacky6 added a commit to wacky6/element that referenced this pull request Nov 10, 2018
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.
ziyoung pushed a commit that referenced this pull request Nov 12, 2018
* 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.
weisiren168 pushed a commit to weisiren168/element that referenced this pull request Jun 20, 2019
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants