mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
update
This commit is contained in:
parent
bbd979f7ff
commit
784ad7d57c
@ -26,6 +26,13 @@ exports[`Icon \`component\` prop can access to svg defs if has children 1`] = `
|
|||||||
/>
|
/>
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
</defs>
|
</defs>
|
||||||
|
<title>
|
||||||
|
Cool Home
|
||||||
|
</title>
|
||||||
|
<path
|
||||||
|
d="'M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'"
|
||||||
|
fill="scriptUrl(#gradient)"
|
||||||
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
</i>
|
</i>
|
||||||
`;
|
`;
|
||||||
|
@ -149,7 +149,7 @@ const Icon: IconComponent<IconProps> = props => {
|
|||||||
const renderInnerNode = () => {
|
const renderInnerNode = () => {
|
||||||
// component > children > type
|
// component > children > type
|
||||||
if (Component) {
|
if (Component) {
|
||||||
return <Component {...innerSvgProps} />;
|
return <Component {...innerSvgProps}>{children}</Component>;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (children) {
|
if (children) {
|
||||||
|
Loading…
Reference in New Issue
Block a user