king
2023-07-18 a5c71db861ec548245200767cdbf24839ad2b866
src/tabviews/custom/components/card/prop-card/index.jsx
@@ -32,6 +32,7 @@
  }
  loaded = false
  autoTimer = null
  UNSAFE_componentWillMount () {
    const { data, initdata } = this.props
@@ -280,14 +281,23 @@
    }
  }
  autoExec = () => {
  autoExec = (times) => {
    const { config, data } = this.state
    if (!config.wrap.autoExec) return
    setTimeout(() => {
    let btn = document.getElementById('button' + config.wrap.autoExec)
    clearTimeout(this.autoTimer)
    if (btn) {
      MKEmitter.emit('triggerBtnId', config.wrap.autoExec, data.$$empty ? [] : [data])
    }, 200)
    } else if (!times || times < 20) {
      times = times ? times + 1 : 1
      this.autoTimer = setTimeout(() => {
        this.autoExec(times)
      }, 1000)
    }
  }
  checkTopLine = () => {