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

日期选择器添加日期slot #6751

Open
3 tasks done
Lassell opened this issue Feb 13, 2025 · 0 comments
Open
3 tasks done

日期选择器添加日期slot #6751

Lassell opened this issue Feb 13, 2025 · 0 comments
Labels
feature request New feature or request

Comments

@Lassell
Copy link

Lassell commented Feb 13, 2025

问题的清晰而简明的描述

在有些需求内容中,需要改造日期选择器的日期样式,需要添加节日,或需要需要增加农历,或改样式
希望能给日期选择器的日期添加一个slot,提供year,month,date参数,供使用者自由改造

建议的解决方案

date-picker/src/panel/date.tsx:162
date-picker/src/panel/daterange.tsx:151
date-picker/src/panel/daterange.tsx:250
date-picker/src/panel/datetime.tsx:170
date-picker/src/panel/datetimerange.tsx:229
date-picker/src/panel/datetimerange.tsx:338
{dateItem.dateObject.date} => {resolveScopedSlot($slots['date'], () => [dateItem.dateObject.date], dateItem.dateObject)}

备选方案

No response

附加上下文

No response

验证

  • 阅读 贡献指南
  • 阅读 文档
  • 检查是否已经存在请求相同功能的问题,以避免创建重复的问题。
@Lassell Lassell added the feature request New feature or request label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant