-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
feat(wd-datetime-picker): datetime-picker 增加自定义 Cell 样式属性 #491
Conversation
👷 Deploy request for wot-design-uni accepted.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Walkthrough此次更新为日期时间选择器组件引入了新的自定义选项,允许开发者通过 Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- docs/component/datetime-picker.md (1 hunks)
- src/uni_modules/wot-design-uni/components/wd-datetime-picker/types.ts (1 hunks)
- src/uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.vue (1 hunks)
Files skipped from review due to trivial changes (1)
- docs/component/datetime-picker.md
Additional comments not posted (2)
src/uni_modules/wot-design-uni/components/wd-datetime-picker/types.ts (1)
158-161
: 属性添加正确
customCellClass
属性的添加正确,并且与其他属性保持一致性。src/uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.vue (1)
11-11
: 模板结构修改正确模板结构的修改正确地集成了
customCellClass
属性,增强了样式的灵活性。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
关于新API支持的最低版本,可以参考贡献指南,使用$LOWEST_VERSION$
占位即可,发版时会自动更新。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- docs/component/datetime-picker.md (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- docs/component/datetime-picker.md
感谢提醒,已补充 :) |
🤔 这个 PR 的性质是?(至少选择一个)
🔗 相关 Issue
💡 需求背景和解决方案
直接使用 datetime-picker 组件而又不想使用自定义插槽的情况下,该组件会被包裹在一个 cell 元素中,而现有的属性无法调整该容器 cell 的样式,所以简单的补充了一个属性,以便自定义。
☑️ 请求合并前的自查清单
Summary by CodeRabbit
customCellClass
属性,允许用户自定义单元格样式。custom-cell-class
的说明,提供更好的定制选项。custom-cell-class
的文档条目,说明其为单元格的外部自定义样式。