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

希望 Calendar 日历 组件能够默认选择今天之前的日期,对于日期的选择没有限制 #1085

Open
parker683 opened this issue Aug 28, 2024 · 0 comments

Comments

@parker683
Copy link

这个功能解决了什么问题?

希望 Calendar 日历 组件能够默认选择今天之前的日期,对于日期的选择没有限制,对于日期限制问题,可以增加属性或者方法来让用户进行自定义的限制。
这样方便用户根据实际的业务需求进行使用

你期望的 API 是怎样的?

<u-calendar
:disabled-date="disabledDateFun"

disabledDateFun = (time) => {
if (条件) {
return true // 禁用
}
return false // 可使用
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant