diff --git a/components/apolloTable/component/operate/index.tsx b/components/apolloTable/component/operate/index.tsx index e840a7fc21e645e59db5cd9b38464811a29ddb24..08e493e766569ac916c730f30bed8f8e0fe3df7d 100644 --- a/components/apolloTable/component/operate/index.tsx +++ b/components/apolloTable/component/operate/index.tsx @@ -50,8 +50,9 @@ export default class Operate extends Component { const { operateConfig, columns } = this.props; const { menusGroup, buttonsGroup, renderCustomNode }: any = operateConfig || {}; - const filter: any = menusGroup - && menusGroup.find((item: any) => { + const filter: any = + menusGroup && + menusGroup.find((item: any) => { return item.type === 'filter'; }); return ( @@ -73,9 +74,11 @@ export default class Operate extends Component {
{buttonsGroup.map((item: any, i: number) => { return ( -
- {this.renderBtn(item)} -
+ !item.hidden && ( +
+ {this.renderBtn(item)} +
+ ) ); })}