king
2022-11-21 f6626b05f1275cc2f8ca77f773d4f6a6af1b0a89
src/menu/components/share/normalheader/index.jsx
@@ -48,24 +48,24 @@
  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