mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +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) ? (
|
||||
<Icon icon={iconValue} className="icon" />
|
||||
) : React.isValidElement(iconValue) ? (
|
||||
iconValue
|
||||
) : (
|
||||
<i className={iconValue}></i>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user