feat(Switch): support classNames and styles for component and ConfigProvider#52849
feat(Switch): support classNames and styles for component and ConfigProvider#52849thinkasany merged 3 commits intonextfrom
classNames and styles for component and ConfigProvider#52849Conversation
|
|
👁 Visual Regression Report for PR #52849 Failed ❌
Warning There are more diffs not shown in the table. Please check the Full Report for details. Important There are 96 diffs found in this PR: 🔄
|
WalkthroughThis pull request introduces a new feature to the ConfigProvider component, allowing it to support custom class names and styles for the Switch component. This enhancement provides developers with more flexibility in styling the Switch component according to their needs. Changes
|
size-limit report 📦
|
More templates
commit: |
Bundle ReportChanges will decrease total bundle size by 7.9MB (-67.8%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
Files in
Files in
|
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/rc-switch@4.1.0 |
Deploying ant-design with
|
| Latest commit: |
86c7686
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a90252a5.ant-design.pages.dev |
| Branch Preview URL: | https://cp-switch.ant-design.pages.dev |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #52849 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 765 765
Lines 13799 13799
Branches 3617 3617
=========================================
Hits 13799 13799 ☔ View full report in Codecov by Sentry. |
components/switch/demo/_semantic.tsx
Outdated
| { name: 'content', desc: locale.content, version: '6.0.0' }, | ||
| ]} | ||
| > | ||
| <Switch checkedChildren="on" unCheckedChildren="off" defaultChecked /> |
classNames and styles for component and ConfigProvider


























中文版模板 / Chinese template
🤔 This is a ...
📝 Change Log