From dfdcdcb3dbd0b711bc0b77bb00fd1d39af91bd0b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 10 一月 2025 17:43:34 +0800 Subject: [PATCH] 2025-01-10 --- src/menu/components/share/actioncomponent/index.jsx | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/src/menu/components/share/actioncomponent/index.jsx b/src/menu/components/share/actioncomponent/index.jsx index c30f245..a754d81 100644 --- a/src/menu/components/share/actioncomponent/index.jsx +++ b/src/menu/components/share/actioncomponent/index.jsx @@ -157,7 +157,7 @@ card: element }) - MKEmitter.emit('changeStyle', options, _style, this.getStyle) + MKEmitter.emit('changeStyle', options, _style, this.getStyle, 'toolBtn') } addButton = (cardId, element) => { @@ -461,6 +461,11 @@ } btn.updateTime = moment().format('YYYY-MM-DD HH:mm') + + if (btn.style) { + delete btn.style.display + } + return btn } else { return item @@ -530,6 +535,16 @@ let _actionlist = fromJS(this.state.actionlist).toJS() _actionlist = _actionlist.filter(item => !item.origin || item.uuid === card.uuid) + res.customverifys && res.customverifys.forEach(item => { + item.sql = item.sql.replace(/\t+|\v+/g, ' ') + }) + res.scripts && res.scripts.forEach(item => { + item.sql = item.sql.replace(/\t+|\v+/g, ' ') + }) + res.cbScripts && res.cbScripts.forEach(item => { + item.sql = item.sql.replace(/\t+|\v+/g, ' ') + }) + _actionlist = _actionlist.map(item => { if (item.uuid === card.uuid) { item.verify = res -- Gitblit v1.8.0