From e6e9c4f9b2fb92fb4b66b29e0c7d22595b345c97 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 01 四月 2025 11:44:44 +0800 Subject: [PATCH] 2025-04-01 --- src/tabviews/custom/components/card/prop-card/index.jsx | 8 +++++++- src/menu/components/card/data-card/options.jsx | 10 ++++++++++ 2 files changed, 17 insertions(+), 1 deletions(-) diff --git a/src/menu/components/card/data-card/options.jsx b/src/menu/components/card/data-card/options.jsx index 4b010f9..9b0aeec 100644 --- a/src/menu/components/card/data-card/options.jsx +++ b/src/menu/components/card/data-card/options.jsx @@ -484,9 +484,19 @@ forbid: subtype !== 'propcard' && subtype !== 'datacard', controlFields: [ {field: 'emptyExec', notNull: true}, + {field: 'execDelay', notNull: true}, ] }, { + type: 'number', + field: 'execDelay', + label: '鎵ц寤舵椂', + initval: wrap.execDelay, + tooltip: '鑷姩鎵ц鎸夐挳鐨勫欢鏃舵墽琛屾椂闂达紝鍗曚綅姣銆�', + required: false, + forbid: subtype !== 'propcard' + }, + { type: 'radio', field: 'emptyExec', label: '绌哄�兼墽琛�', diff --git a/src/tabviews/custom/components/card/prop-card/index.jsx b/src/tabviews/custom/components/card/prop-card/index.jsx index 0035cff..5008784 100644 --- a/src/tabviews/custom/components/card/prop-card/index.jsx +++ b/src/tabviews/custom/components/card/prop-card/index.jsx @@ -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