From ddddb07002201150da9551875c25e75499563249 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 15 一月 2021 15:22:55 +0800 Subject: [PATCH] 2021-01-15 --- src/templates/zshare/editTable/index.jsx | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/templates/zshare/editTable/index.jsx b/src/templates/zshare/editTable/index.jsx index 4b3fa72..feb862e 100644 --- a/src/templates/zshare/editTable/index.jsx +++ b/src/templates/zshare/editTable/index.jsx @@ -471,8 +471,12 @@ cell: EditableCell } } + + let moveprops = {} if (actions.includes('move')) { components.body.row = DragableBodyRow + moveprops.moveAble = !this.state.editingKey + moveprops.moveRow = this.moveRow } const columns = this.state.columns.map(col => { @@ -509,8 +513,7 @@ pagination={false} onRow={(record, index) => ({ index, - moveAble: !this.state.editingKey, - moveRow: this.moveRow, + ...moveprops })} /> </DndProvider> -- Gitblit v1.8.0