mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
Tree 组件支持传入svg 图标
This commit is contained in:
parent
ca9e7f8a55
commit
3b4c4cea73
@ -956,6 +956,8 @@ export class TreeSelector extends React.Component<
|
|||||||
>
|
>
|
||||||
{getIcon(iconValue) ? (
|
{getIcon(iconValue) ? (
|
||||||
<Icon icon={iconValue} className="icon" />
|
<Icon icon={iconValue} className="icon" />
|
||||||
|
) : React.isValidElement(iconValue) ? (
|
||||||
|
iconValue
|
||||||
) : (
|
) : (
|
||||||
<i className={iconValue}></i>
|
<i className={iconValue}></i>
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user