From b9ba9c62a5cf38a64807b0556751db93f562187c Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Fri, 25 Dec 2020 19:35:36 +0800 Subject: [PATCH] update --- components/apolloTable/component/operate/index.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/components/apolloTable/component/operate/index.tsx b/components/apolloTable/component/operate/index.tsx index bc99925..d629527 100644 --- a/components/apolloTable/component/operate/index.tsx +++ b/components/apolloTable/component/operate/index.tsx @@ -39,19 +39,25 @@ export default class Operate extends Component { }; renderBtn = (btn: any) => { - const { render, label, onClick } = btn; + const { render, label, onClick, type, ghost, icon } = btn; if (typeof render === 'function') { return render(btn); } - return ; + return ( + + ); }; render() { const { operateConfig, columns } = this.props; const { menusGroup, buttonsGroup, renderCustomNode, showCondition }: any = operateConfig || {}; - const filter: any = menusGroup - && menusGroup.find((item: any) => { + const filter: any = + menusGroup && + menusGroup.find((item: any) => { return item.type === 'filter'; }); return ( -- 2.21.0