| | |
| | | data: {}, |
| | | BData: null, |
| | | syncData: [], |
| | | show: true, |
| | | checked: false |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | let show = true |
| | | let syncConfig = null |
| | | if (_config.wrap.linkType === 'sync') { |
| | | syncConfig = _config.syncConfig |
| | |
| | | } |
| | | return item |
| | | }) |
| | | } else if (_config.wrap.linkType === 'sup' && _config.wrap.supControl === 'hidden') { |
| | | show = false |
| | | } |
| | | |
| | | this.setState({ |
| | | show, |
| | | syncConfig, |
| | | data: _data, |
| | | BID: BID || '', |
| | |
| | | } else { |
| | | if (!config.wrap.supModule || config.wrap.supModule !== MenuID) return |
| | | |
| | | if (config.wrap.supControl === 'hidden') { |
| | | this.setState({ show: id ? true : false }) |
| | | } |
| | | |
| | | if (id !== this.state.BID || id !== '') { |
| | | this.setState({ BID: id, BData: data }, () => { |
| | | this.loadData() |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { config, loading, data, show, syncConfig, syncData, checked } = this.state |
| | | const { config, loading, data, syncConfig, syncData, checked, BID } = this.state |
| | | |
| | | if (config.wrap.empty === 'hidden' && (!data || data.$$empty)) return null |
| | | if (config.wrap.supControl === 'hidden' && !BID) return null |
| | | |
| | | let style = {...config.style} |
| | | if (config.wrap.bgField) { |
| | |
| | | } |
| | | |
| | | return ( |
| | | <div className={'custom-balcony-box' + (!show ? ' hidden' : '')} id={'anchor' + config.uuid} style={style} onClick={this.triggerButton}> |
| | | <div className="custom-balcony-box" id={'anchor' + config.uuid} style={style} onClick={this.triggerButton}> |
| | | {loading ? |
| | | <div className="loading-mask" onClick={(e) => e.stopPropagation()}> |
| | | <div className="ant-spin-blur"></div> |