mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
修复tab中icon显示问题”
This commit is contained in:
parent
a433c1cc9a
commit
7828724fa1
@ -70,13 +70,7 @@ export class Tabs extends React.Component<TabsProps> {
|
|||||||
key={index}
|
key={index}
|
||||||
onClick={() => disabled ? '' : this.handleSelect(eventKey)}
|
onClick={() => disabled ? '' : this.handleSelect(eventKey)}
|
||||||
>
|
>
|
||||||
{icon ? (
|
<a>{icon ? <i className={icon} /> : null} {title}</a>
|
||||||
<div>
|
|
||||||
<i className={icon} /><a>{title}</a>
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<a>{title}</a>
|
|
||||||
)}
|
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user