-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat(Cascader): add classNames & styles props #6865
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
base: master
Are you sure you want to change the base?
feat(Cascader): add classNames & styles props #6865
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6865 +/- ##
=======================================
Coverage 92.76% 92.76%
=======================================
Files 336 336
Lines 7214 7233 +19
Branches 1799 1819 +20
=======================================
+ Hits 6692 6710 +18
- Misses 486 487 +1
Partials 36 36 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Pull Request Overview
This pull request adds new props for custom class names and inline styles to the Cascader component to enhance its semantic customization capability.
- Updated documentation for Cascader in both Chinese and English.
- Added "classNames" and "styles" props to the CascaderProps and integrated them into the Popup component render.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
src/components/cascader/index.zh.md | Added documentation for new props "classNames" and "styles" |
src/components/cascader/index.en.md | Added documentation for new props "classNames" and "styles" |
src/components/cascader/cascader.tsx | Introduced new props and integrated them into Popup for styling |
Comments suppressed due to low confidence (1)
src/components/cascader/index.en.md:43
- [nitpick] Consider capitalizing 'DOM' for consistency and clarity in the documentation.
| destroyOnClose | Destroy `dom` when not visible | `boolean` | `true` |
@@ -50,6 +50,20 @@ export type CascaderProps = { | |||
onTabsChange?: (index: number) => void | |||
activeIcon?: ReactNode | |||
fieldNames?: FieldNamesType | |||
classNames?: { |
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.
test case 要个~
styles
也要~
No description provided.