mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 04:18:29 +08:00
fix toolbar 不是 react element 的问题
This commit is contained in:
parent
e51d3bfb80
commit
01cdd4b1c2
@ -74,7 +74,7 @@ export class Tabs extends React.Component<TabsProps> {
|
||||
onClick={() => disabled ? '' : this.handleSelect(eventKey)}
|
||||
>
|
||||
<a>{icon ? <i className={icon} /> : null} {title}</a>
|
||||
{toolbar}
|
||||
{React.isValidElement(toolbar) ? toolbar : null}
|
||||
</li>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user