From fb64bcf1fab18b33d21470c83f28d4cda8d309ce Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 26 十月 2022 12:15:59 +0800 Subject: [PATCH] 2022-10-26 --- src/menu/components/share/actioncomponent/index.jsx | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/src/menu/components/share/actioncomponent/index.jsx b/src/menu/components/share/actioncomponent/index.jsx index 2bee4a7..ce85dbf 100644 --- a/src/menu/components/share/actioncomponent/index.jsx +++ b/src/menu/components/share/actioncomponent/index.jsx @@ -316,7 +316,6 @@ */ deleteElement = (card) => { const { config } = this.props - const { appType } = this.state let _this = this confirm({ @@ -331,11 +330,6 @@ }, () => { _this.props.updateaction({...config, action: _actionlist}) }) - - if (card.origin || appType === 'mob') return - if (appType === 'pc' && card.OpenType !== 'popview') return - - MKEmitter.emit('delButtons', [card.uuid]) }, onCancel() {} }) @@ -461,7 +455,7 @@ let btn = null let _col = null - if (config.subtype === 'normaltable' || config.subtype === 'editable' || config.subtype === 'basetable') { + if (config.type === 'table') { config.cols.forEach(col => { if (col.type !== 'action') return -- Gitblit v1.8.0