Skip to content

feat(Cascader): add classNames & styles props#6865

Open
keqingrong wants to merge 3 commits into
ant-design:masterfrom
keqingrong:feature/cascader-popup-props
Open

feat(Cascader): add classNames & styles props#6865
keqingrong wants to merge 3 commits into
ant-design:masterfrom
keqingrong:feature/cascader-popup-props

Conversation

@keqingrong

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented May 11, 2025

Copy link
Copy Markdown
Contributor

Preview is ready

@codecov

codecov Bot commented May 11, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.76%. Comparing base (d3b3bae) to head (e0f11ef).
⚠️ Report is 69 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.

Comment thread src/components/cascader/cascader.tsx Outdated
Comment thread src/components/cascader/cascader.tsx Outdated
@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

Copilot AI left a comment

Copy link
Copy Markdown

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` |

onTabsChange?: (index: number) => void
activeIcon?: ReactNode
fieldNames?: FieldNamesType
classNames?: {

Copy link
Copy Markdown
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.

3 participants