Merge pull request #156 from catchonme/master

修复tab中icon显示问题
This commit is contained in:
liaoxuezhi 2019-08-14 19:08:17 +08:00 committed by GitHub
commit ce51a44785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

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>
);
}