From 420d1a4acf68eaf7a45cbfb2faea4dee32fe2c7a Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Tue, 21 Jul 2020 19:27:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8C=89=E9=92=AE=E8=B7=9F?= =?UTF-8?q?=E7=A1=AE=E5=AE=9A=E6=8C=89=E9=92=AE=E5=88=86=E5=BC=80=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/apolloTable/editFormV3/index.less | 3 +- components/apolloTable/editFormV3/index.tsx | 33 +++++++++----------- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/components/apolloTable/editFormV3/index.less b/components/apolloTable/editFormV3/index.less index 6c2693e..1f68680 100644 --- a/components/apolloTable/editFormV3/index.less +++ b/components/apolloTable/editFormV3/index.less @@ -55,12 +55,11 @@ .buttonWrap { position: absolute; bottom: 16px; + left: 26px; right: 45px; .delBtnCls { color: @errorColor; - position: relative; - left: -303px; } } } diff --git a/components/apolloTable/editFormV3/index.tsx b/components/apolloTable/editFormV3/index.tsx index 065441b..1192ea5 100644 --- a/components/apolloTable/editFormV3/index.tsx +++ b/components/apolloTable/editFormV3/index.tsx @@ -32,9 +32,7 @@ class FormWrap extends Component { handleSubmit = (e) => { e.preventDefault(); e.stopPropagation(); - const { - rowId, form, handleSubmit, data, rowData, detailType, - } = this.props; + const { rowId, form, handleSubmit, data, rowData, detailType } = this.props; form.validateFieldsAndScroll((err, values) => { if (!err) { const newValues: any[] = []; @@ -183,9 +181,7 @@ class FormWrap extends Component { }; render() { - const { - loading, isShowDelBtn, data, btnWrapStyle, name, colsNum, delLabel, hideOperateBtn, - } = this.props; + const { loading, isShowDelBtn, data, btnWrapStyle, name, colsNum, delLabel, hideOperateBtn } = this.props; return ( @@ -216,15 +212,15 @@ class FormWrap extends Component { })} - { - hideOperateBtn ? null : ( -
-
- {isShowDelBtn ? ( - - ) : null} +
+
+ {isShowDelBtn && ( + + )} + {!hideOperateBtn && ( +
@@ -238,10 +234,9 @@ class FormWrap extends Component { 确定
-
- ) - } - + )} +
+
); -- 2.21.0