| | |
| | | } |
| | | |
| | | UNSAFE_componentWillMount () { |
| | | const { data, BID } = this.props |
| | | const { data, BID, initdata } = this.props |
| | | let _config = fromJS(this.props.config).toJS() |
| | | |
| | | let _data = { $$empty: true } |
| | |
| | | _data = _data[0] || {} |
| | | } |
| | | _sync = false |
| | | } else if (_sync && initdata) { |
| | | _data = initdata |
| | | if (Array.isArray(_data)) { |
| | | _data = _data[0] || {$$empty: true} |
| | | } |
| | | _sync = false |
| | | } |
| | | } |
| | | |
| | |
| | | _data.$$BID = BID || '' |
| | | } |
| | | |
| | | if (_config.wrap.position === 'fixed') { |
| | | _config.style.position = 'fixed' |
| | | if (_config.wrap.position === 'fixed' || _config.wrap.position === 'absolute') { |
| | | _config.style.position = _config.wrap.position |
| | | _config.style.zIndex = 2 |
| | | _config.style.left = _config.wrap.left || '' |
| | | _config.style.right = _config.wrap.right || '' |
| | |
| | | _config.style.bottom = _config.wrap.bottom || '' |
| | | _config.style.transform = _config.wrap.transform || '' |
| | | _config.style.width = _config.wrap.realwidth || '' |
| | | } else { |
| | | _config.style.zIndex = 2 |
| | | _config.style.left = _config.wrap.left || '' |
| | | _config.style.right = _config.wrap.right || '' |
| | | _config.style.top = _config.wrap.top || '' |
| | | _config.style.bottom = _config.wrap.bottom || '' |
| | | } |
| | | |
| | | let show = true |