-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add a prop to control show/hide disabled hours, or minutes, seconds #22
Comments
Add |
The function isMinuteDisabled(minute, selectedHour) {
if (selectedHour === null) return false;
return minute % 10 === 0 ? false : true;
} and add one Your suggestions has a question.
I think it is too heavy to add 3 prop for this and will puzzle user, "should i set step or set disabled value? It's not clear" So far, I don't have a pr this feature: add Thanks for reply! 😄 |
I thinks disabled can only controll the what does the item looks like (and whether it can be click). Maybe we can provide a It will be complex for users to define step by |
|
那可选的秒就是 0 8 16 24 32 40 48 56 |
0 永远不会出现吗 |
不好意思忘了 0😂 有的 |
那现在需求是这样吗
|
大意是对的,不过我想说的是这两个是正交的,不存在优先级的问题,是在做两件事。is-xxx-disabled 还会体现在输入框里面,这个 seconds 之类是不会影响的。 |
我明白了,意思是 seconds:[10,20,30] 会被 is-seconds-disabled 把 30变为不能点击的状态? |
对的,这是两个维度。 |
ref #498 |
What problem does the feature solve?
When I use
time-picker
to quickly select a time, I wish to just leave the value not disabled on the panel.Such as I disable every 10 minutes(enable 0, 10, 20...), to choose 08:00, 08:10, 08:20...
But the panel show 9 disabled value and 1 enable value.
It not make me choose value faster but slow down.
So i think if you can add a prop to control the show/hide of disabled hours(minutes, seconds), because these values
have been
disabled
by user, means user don't want to use them, so these disabled value should not be shown by default.What does the proposed API look like?
The disabled value should not show by default.
Thank your!
The text was updated successfully, but these errors were encountered: