-
-
Notifications
You must be signed in to change notification settings - Fork 50.1k
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: Drawer support classNames #44935
Conversation
Run & review this pull request in StackBlitz Codeflow. |
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
size-limit report 📦
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feature #44935 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 687 687
Lines 11654 11655 +1
Branches 3119 3119
=========================================
+ Hits 11654 11655 +1
☔ View full report in Codecov by Sentry. |
Signed-off-by: MadCcc <1075746765@qq.com>
The latest updates on your projects. Learn more about Argos notifications ↗︎ Waiting for the first build to start… |
| className | Drawer 容器外层 className 设置,如果需要设置最外层,请使用 rootClassName | string | - | | | ||
| classNames | 配置抽屉内置模块的 className | `header?: string; body?: string; footer?: string; mask?: string; wrapper?: string;` | - | | | ||
| styles | 配置抽屉内置模块的 style | `header?: CSSProperties; body?: CSSProperties; footer?: CSSProperties; mask?: CSSProperties; wrapper?: CSSProperties;` | - | 5.10.0 | |
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.
这里是 wrapper,但是代码里是 content。
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 12e5a44
This pull request adds a new
classNames
prop to theDrawer
andDrawerPanel
components, which allows users to customize theclassName
of the internal regions of the drawer. It also updates the documentation and the demo files for thedrawer
component in both English and Chinese languages. Additionally, it updates therc-drawer
dependency to the latest version.🔍 Walkthrough
🤖 Generated by Copilot at 12e5a44
classNames
prop to theDrawer
andDrawerPanel
components to allow users to customize theclassName
of the internal regions of the drawer (link, link, link, link, link, link, link, link, link)rc-drawer
dependency to the latest version that supports theclassNames
prop (link)classNames
prop in both Chinese and English languages in thedemo
andindex
files of thedrawer
component (link, link, link, link, link, link)