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

[DatePicker2]日期选择组件RangPicker,需要实现时分秒单独禁用功能 #4924

Closed
FairyYang opened this issue Aug 30, 2024 · 5 comments
Assignees
Labels
💬 Discussion improvement improve some features

Comments

@FairyYang
Copy link
Collaborator

Component

DatePicker2

Feature Description

因项目多次需要,需要实现日期时分秒的禁用,当前只能禁用日期,不对时分秒控制,可参考antd DatePicker 控制【可用disableDate 和 disbaledTime 分别禁止选择部分日期和时间】

Copy link

这是您为 Fusion/Next 提的第一个 issue,感谢您对 Fusion 的信任和支持,我们会尽快进行处理。

@eternalsky
Copy link
Contributor

eternalsky commented Sep 2, 2024

DatePicker2 支持 disabledTime 的,文档里好像没写,用法参考 TimePicker。 近期会优化 DatePicker2 的文档

@FairyYang
Copy link
Collaborator Author

image
RangePicker用这两种禁用,都没有生效,还有其他属性吗?

@eternalsky
Copy link
Contributor

eternalsky commented Sep 9, 2024

RangePicker用这两种禁用,都没有生效,还有其他属性吗?

是传入 disabledTime

<DatePicker2.RangePicker
    disabledTime={{
         disabledHours: xxx,
    }}
/>

@FairyYang
Copy link
Collaborator Author

问题已解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 Discussion improvement improve some features
Projects
None yet
Development

No branches or pull requests

2 participants