| | |
| | | updateComponent: PropTypes.func // 配置更新 |
| | | } |
| | | |
| | | state = { |
| | | appType: sessionStorage.getItem('appType') |
| | | } |
| | | |
| | | componentDidMount () { |
| | | MKEmitter.addListener('submitStyle', this.getStyle) |
| | | } |
| | |
| | | changeStyle = () => { |
| | | const { config } = this.props |
| | | |
| | | // MKEmitter.emit('changeStyle', [config.uuid, 'header'], ['font', 'height', 'border'], config.headerStyle) |
| | | MKEmitter.emit('changeStyle', [config.uuid, 'header'], ['font', 'border'], config.headerStyle) |
| | | } |
| | | |
| | | render() { |
| | | const { config, defaultshow, hideSearch } = this.props |
| | | const { appType } = this.state |
| | | |
| | | let title = config.plot ? config.plot.title : config.wrap.title |
| | | let show = true |
| | | |
| | | if (!title && appType === 'mob' && config.type === 'card' && config.subtype === 'datacard' && config.action && config.action.length) { |
| | | title = ' ' |
| | | } |
| | | |
| | | if (defaultshow === 'hidden') { |
| | | if (!title && (!config.search || config.search.length === 0)) { |
| | | show = false |