diff --git a/components/apolloTable/editFormV3/index.less b/components/apolloTable/editFormV3/index.less index 6c2693e1136c12219f1437afe7d133a5c6311954..1f686801ba8ad616bada8852882a737e936eefc1 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 065441b8c555093f9aec2ca57de7263e1da2bc3f..1192ea5c04cbfd963b8089a9232b57e29f83f717 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 { 确定
-
- ) - } - + )} +
+
);