From cbb5bb7c9eecc76bbebea81875ab6813372a78a6 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 19 五月 2025 17:53:53 +0800 Subject: [PATCH] 2025-05-19 --- src/tabviews/custom/components/card/prop-card/index.jsx | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/tabviews/custom/components/card/prop-card/index.jsx b/src/tabviews/custom/components/card/prop-card/index.jsx index 0035cff..2c4e2d2 100644 --- a/src/tabviews/custom/components/card/prop-card/index.jsx +++ b/src/tabviews/custom/components/card/prop-card/index.jsx @@ -123,7 +123,7 @@ let selected = _config.wrap.selected || 'false' - _config.wrap.selStyle = _config.wrap.selStyle || 'active' + _config.wrap.selStyle = _config.wrap.selStyle || 'none' _config.wrap.priKeyType = _config.wrap.priKeyType || 'static' _config.wrap.scale = _config.wrap.scale === 'true' ? 'scale' : '' @@ -161,7 +161,7 @@ MKEmitter.addListener('searchRefresh', this.searchRefresh) } - if (config.timer && config.wrap.datatype === 'dynamic') { + if (config.timer && config.wrap.datatype !== 'public') { this.timer = new TimerTask() this.timer.init(config.uuid, config.timer, config.timerRepeats, () => {this.loadData('timer')}) } @@ -404,7 +404,13 @@ if (config.setting.supModule && config.wrap.datatype === 'static' && !data.$$BID) { } else if (btn) { - MKEmitter.emit('triggerBtnId', config.wrap.autoExec, data.$$empty ? [] : [data]) + if (config.wrap.execDelay) { + setTimeout(() => { + MKEmitter.emit('triggerBtnId', config.wrap.autoExec, data.$$empty ? [] : [data]) + }, config.wrap.execDelay) + } else { + MKEmitter.emit('triggerBtnId', config.wrap.autoExec, data.$$empty ? [] : [data]) + } } else if (!times || times < 20) { times = times ? times + 1 : 1 this.autoTimer = setTimeout(() => { -- Gitblit v1.8.0