From 66cc7818cf5e13c44f4372e7d47fb72df7d2f752 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 16 九月 2022 10:30:14 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/menu/components/table/base-table/columns/index.jsx | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/menu/components/table/base-table/columns/index.jsx b/src/menu/components/table/base-table/columns/index.jsx index 44be56a..f68b463 100644 --- a/src/menu/components/table/base-table/columns/index.jsx +++ b/src/menu/components/table/base-table/columns/index.jsx @@ -313,11 +313,10 @@ cell.uuid = Utils.getuuid() cell.focus = true - MKEmitter.emit('cardAddElement', [this.props.config.uuid, col.uuid], cell) + MKEmitter.emit('cardAddElement', col.uuid, cell) } addElement = (col) => { - const { config } = this.props let column = fromJS(col).toJS() if (column.type === 'colspan') { @@ -333,7 +332,7 @@ let newcard = {uuid: Utils.getuuid(), focus: true, width: 24, eleType: 'text', datatype: 'dynamic', style: {paddingLeft: '4px'}} // 娉ㄥ唽浜嬩欢-娣诲姞鍏冪礌 - MKEmitter.emit('cardAddElement', [config.uuid, column.uuid], newcard) + MKEmitter.emit('cardAddElement', column.uuid, newcard) } else if (column.type === 'action') { let newcard = { uuid: Utils.getuuid(), @@ -349,7 +348,7 @@ } // 娉ㄥ唽浜嬩欢-娣诲姞鍏冪礌 - MKEmitter.emit('cardAddElement', [config.uuid, column.uuid], newcard) + MKEmitter.emit('cardAddElement', column.uuid, newcard) } } -- Gitblit v1.8.0