| | |
| | | } |
| | | |
| | | loaded = false |
| | | autoTimer = null |
| | | |
| | | UNSAFE_componentWillMount () { |
| | | const { data, initdata } = this.props |
| | |
| | | } |
| | | } |
| | | |
| | | 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 = () => { |