修复tab中icon显示问题”

This commit is contained in:
catchonme 2019-08-14 19:05:55 +08:00
parent a433c1cc9a
commit 7828724fa1

View File

@ -70,13 +70,7 @@ export class Tabs extends React.Component<TabsProps> {
key={index}
onClick={() => disabled ? '' : this.handleSelect(eventKey)}
>
{icon ? (
<div>
<i className={icon} /><a>{title}</a>
</div>
) : (
<a>{title}</a>
)}
<a>{icon ? <i className={icon} /> : null} {title}</a>
</li>
);
}