Skip to content

日期选择器需要支持对指定日期禁用 #1720

@asdw741111

Description

@asdw741111

这个功能解决了什么问题?
目前只有有效开始和结束的属性,无法显示复杂的控制,例如我现在需要对周六日和节假日禁用。

你期望的功能是怎样的?
需要增加类似ant-design日期选择其中的disabledDate属性,支持根据现实的每个日期返回布尔值控制是否禁用。
例如

disabledDate={(current) => current && workDays.includes(current)}

补充信息

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions