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

关于时间预设值的回调函数 #1629

Closed
BerQin opened this issue Jun 11, 2018 · 0 comments
Closed

关于时间预设值的回调函数 #1629

BerQin opened this issue Jun 11, 2018 · 0 comments
Assignees

Comments

@BerQin
Copy link

BerQin commented Jun 11, 2018

What problem does this feature solve?

一个场景,比如需要选最近7日的时间,但是想做到不管什么时间都是最近七日,和点选的7日是要区分开的,用预设的nzRanges填写的预设,但是只能用ngModelChange监听,返回的是一个日期数组,和点选的时间没有任何区别,那么预设的值就不能完成,区分这个时间的需求!目前想到了用一个假页脚去规避这个问题,但是nzRanges 这个属性的设置过于简单!

What does the proposed API look like?

nz-range-picker 这个组件有一个属性 nzRanges 的使用上,默认的变化和内容都还算不错,但是如果我点选了自己预设的日期范围,有时候需要知道点选的属性是什么属性怎么怎么办? nzRanges 直接给一个对象,Key是标题,对应的是一个简单的数组,还是不够用,需要给一个回调函数或者,给一个方法可以在点选后知道自己点选的是什么预设?

andrew-yangy pushed a commit to andrew-yangy/ng-zorro-antd that referenced this issue Jun 20, 2019
* feat(module:date-picker): nzRanges support callback

* feat(module:date-picker): nzRanges support callback

* fix(module:date-picker): fix build error

* feat(module:date-picker): nzRanges support callback

* refactor(module:date-picker): refactor PresetRanges

close NG-ZORRO#1629
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this issue Apr 9, 2020
* feat(module:date-picker): nzRanges support callback

* feat(module:date-picker): nzRanges support callback

* fix(module:date-picker): fix build error

* feat(module:date-picker): nzRanges support callback

* refactor(module:date-picker): refactor PresetRanges

close NG-ZORRO#1629
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
* feat(module:date-picker): nzRanges support callback

* feat(module:date-picker): nzRanges support callback

* fix(module:date-picker): fix build error

* feat(module:date-picker): nzRanges support callback

* refactor(module:date-picker): refactor PresetRanges

close NG-ZORRO#1629
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants