From 19109e1e24325f1cde41d768a7ef5f5bbbd35ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E9=9D=99?= <17600756968@163.com> Date: Mon, 25 Jan 2021 17:11:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0hidden=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/apolloTable/component/tableOperate/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/apolloTable/component/tableOperate/index.tsx b/components/apolloTable/component/tableOperate/index.tsx index 96e560d..85d6ef2 100644 --- a/components/apolloTable/component/tableOperate/index.tsx +++ b/components/apolloTable/component/tableOperate/index.tsx @@ -17,7 +17,10 @@ interface Props { */ export default class Operate extends Component { renderBtn = (btn: any) => { - const { render, label, onClick, type, className } = btn; + const { + render, label, onClick, type, className, hidden, + } = btn; + if (hidden) return null; if (typeof render === 'function') { return render(btn); } -- 2.21.0