king
2025-04-01 e6e9c4f9b2fb92fb4b66b29e0c7d22595b345c97
2025-04-01
2个文件已修改
18 ■■■■■ 已修改文件
src/menu/components/card/data-card/options.jsx 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/prop-card/index.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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: '空值执行',
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(() => {