-
Notifications
You must be signed in to change notification settings - Fork 590
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
refactor(TimePicker2): convert to TypeScript, impove docs and tests, close #4616 #4949
refactor(TimePicker2): convert to TypeScript, impove docs and tests, close #4616 #4949
Conversation
f55f6b6
to
86aca9f
Compare
这个只是描述一个事实,问题是什么? |
问题是,disabledHours在旧的doc里,类型是 (index?: number) => boolean,新增的类型是:(index?: number) => boolean | number[] |
以实际的实现逻辑为准 |
86aca9f
to
a83c38f
Compare
30e2760
to
7006e77
Compare
针对最后一个问题的回复:handleChange 里 v 不可以是 string,在VSCODE里,没有as ValueType,不会报错。 |
7006e77
to
a07a4db
Compare
a07a4db
to
a2d3a59
Compare
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.
LGTM
遇到个问题,当type: range时,disabledHours 需要返回number[],panel的代码逻辑是这么实现的。实际使用过,确实如此。