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

Some props of time-picker are invalid #5671

Closed
1 task
qilimazhualuo opened this issue Jun 6, 2022 · 3 comments
Closed
1 task

Some props of time-picker are invalid #5671

qilimazhualuo opened this issue Jun 6, 2022 · 3 comments
Labels

Comments

@qilimazhualuo
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.5

Environment

node16

Reproduction link

https://www.antdv.com/components/time-picker-cn#components-time-picker-demo-basic

Steps to reproduce

<a-time-range-picker
:disabledMinutes="() => [29, 59]"
:hideDisabledOptions="true"
:minuteStep="15"
/>

这三个props都是无效的,设置了但是没有效果
a-time-picker 是可以的

What is expected?

可以使用步长参数 can use step props

What is actually happening?

步长参数不能使用 steps cannot use

@github-actions github-actions bot changed the title time-picker 部分props 无效 Some props of time-picker are invalid Jun 6, 2022
@tangjinzhou
Copy link
Member

使用

:disabled-time="
      () => ({
        disabledMinutes: () => [30, 50],
      })
    "

直接使用 disabledMinutes 会被废弃,

minuteStep 会在下个版本修复

@qilimazhualuo
Copy link
Author

大佬 hideDisabledOptions 这个属性呢

<a-time-range-picker hideDisabledOptions="true" />
<a-time-range-picker 
    :disabled-time="() => ({
          disabledMinutes: () => [29, 59],
          hideDisabledOptions: true
     })"
 />

这俩种好像都不行
感谢您回复我

@github-actions
Copy link

github-actions bot commented Jun 8, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants