Skip to content

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

keqingrong
Copy link
Contributor

No description provided.

Copy link
Contributor

github-actions bot commented May 11, 2025

Preview is ready

Copy link

codecov bot commented May 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.76%. Comparing base (d3b3bae) to head (e0f11ef).
Report is 13 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@keqingrong keqingrong changed the title feat(Cascader): add popupClassName & popupStyle props feat(Cascader): add classNames & styles props May 18, 2025
@zombieJ zombieJ requested a review from Copilot June 17, 2025 03:00
Copy link

@Copilot Copilot AI left a 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?: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test case 要个~
styles 也要~

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

Successfully merging this pull request may close these issues.

2 participants