feat(Tag): support classNames and styles for component and ConfigProvider#52764
feat(Tag): support classNames and styles for component and ConfigProvider#52764thinkasany merged 3 commits intonextfrom
classNames and styles for component and ConfigProvider#52764Conversation
|
|
👁 Visual Regression Report for PR #52764 Failed ❌
Important There are 2 diffs found in this PR: 🔄
|
WalkthroughThis pull request introduces a new feature to the ConfigProvider component, allowing it to support class names and styles for the Tag component. This enhancement provides more customization options for developers when styling tags. Changes
|
| href?: string; | ||
| target?: string; | ||
| disabled?: boolean; | ||
| classNames?: Partial<Record<SemanticName, string>>; |
There was a problem hiding this comment.
Ensure that the classNames and styles properties are correctly typed and handled to avoid potential runtime errors. Consider adding type checks or validation where necessary.
size-limit report 📦
|
More templates
commit: |
Bundle ReportChanges will increase total bundle size by 900 bytes (0.02%) ⬆️. 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
|
Deploying ant-design with
|
| Latest commit: |
f165727
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2b74b333.ant-design.pages.dev |
| Branch Preview URL: | https://cp-tag.ant-design.pages.dev |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #52764 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 765 765
Lines 13770 13772 +2
Branches 3601 3603 +2
=========================================
+ Hits 13770 13772 +2 ☔ View full report in Codecov by Sentry. |
| (children && (children as React.ReactElement<any>).type === 'a'); | ||
|
|
||
| const iconNode: React.ReactNode = icon || null; | ||
| const iconNode: React.ReactNode = cloneElement(icon, { |
There was a problem hiding this comment.
icon 是 ReactNode,不一定是可以 clone 的,是不是和其他的一样 wrap 一下?
classNames and styles for component and ConfigProvider







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