| | |
| | | changeStyle = () => { |
| | | const { config } = this.props |
| | | |
| | | let options = ['font', 'border', 'background'] |
| | | if (config.type === 'menubar') { |
| | | options.push('padding') |
| | | } |
| | | let options = ['font', 'border', 'background', 'padding'] |
| | | |
| | | MKEmitter.emit('changeStyle', options, config.headerStyle, this.getStyle) |
| | | } |
| | | |
| | | render() { |
| | | const { config, hideSearch } = this.props |
| | | // const { appType } = this.state |
| | | |
| | | let title = config.plot ? config.plot.title : config.wrap.title |
| | | let title = '' |
| | | let show = true |
| | | |
| | | // if (!title && appType === 'mob' && config.type === 'card' && config.subtype === 'datacard' && config.action && config.action.length) { |
| | | // title = ' ' |
| | | // } |
| | | if (config.plot) { |
| | | title = config.plot.title |
| | | } else if (config.type === 'group') { |
| | | title = config.setting.title || '' |
| | | } else if (config.wrap) { |
| | | title = config.wrap.title || '' |
| | | } |
| | | |
| | | if (!title && (!config.search || config.search.length === 0 || hideSearch === 'true')) { |
| | | show = false |