去除tabs无效代码

This commit is contained in:
catchonme 2020-01-14 09:39:03 +08:00
parent 38efe50c9c
commit 7a8df2f643
1 changed files with 1 additions and 12 deletions

View File

@ -202,13 +202,6 @@ export default class Tabs extends React.Component<TabsProps, TabsState> {
: -1;
}
@autobind
handleAction(e: React.UIEvent<any>, action: Action, ctx: object) {
const {onAction} = this.props;
onAction && onAction(e, action, ctx);
}
renderToolbar() {
const {
toolbar,
@ -217,13 +210,9 @@ export default class Tabs extends React.Component<TabsProps, TabsState> {
toolbarClassName
} = this.props;
const toolbarProps = {
onAction: this.handleAction
};
return toolbar ? (
<div className={cx(`Tabs-toolbar`, toolbarClassName)}>
{render('toolbar', toolbar, toolbarProps)}
{render('toolbar', toolbar)}
</div>
) : null;
}