| | |
| | | |
| | | _config.wrap.wrapClass = `${_config.wrap.selStyle} ${_config.wrap.cardType || ''} ${_config.wrap.scale || ''} ${_config.wrap.layout || 'grid'}-layout float-${_config.wrap.cardFloat || 'left'}` |
| | | |
| | | if (_config.wrap.display === 'hidden') { |
| | | _config.style.display = 'none' |
| | | } |
| | | |
| | | this.setState({ |
| | | selected, |
| | | sync: _sync, |
| | |
| | | }, 200) |
| | | } |
| | | |
| | | if (_config.wrap.datatype === 'dynamic') { |
| | | this.autoExec() |
| | | } |
| | | if (!_config.wrap.cardType && _data.$$uuid) { |
| | | setTimeout(() => { |
| | | this.transferLine() |
| | |
| | | } else if (!config.wrap.cardType && _data.$$uuid) { |
| | | this.transferLine() |
| | | } |
| | | this.autoExec() |
| | | }) |
| | | } else if (config.setting.useMSearch && nextProps.mainSearch && !is(fromJS(this.props.mainSearch), fromJS(nextProps.mainSearch))) { |
| | | this.setState({}, () => { |
| | |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | autoExec = () => { |
| | | const { config, data } = this.state |
| | | |
| | | if (!config.wrap.autoExec || data.$$empty) return |
| | | |
| | | setTimeout(() => { |
| | | MKEmitter.emit('triggerBtnId', config.wrap.autoExec, [data]) |
| | | }, 200) |
| | | } |
| | | |
| | | checkTopLine = () => { |
| | |
| | | } else { |
| | | this.transferLine() |
| | | } |
| | | this.autoExec() |
| | | }) |
| | | |
| | | if (config.timer && config.clearField) { |