king
2021-11-18 c98e45bfac25e9110ad0383faac54a54d98ea9d5
src/menu/components/share/normalheader/index.jsx
@@ -12,7 +12,6 @@
class NormalHeader extends Component {
  static propTpyes = {
    defaultshow: PropTypes.any,      // 标题与搜索条件不存在时隐藏
    hideSearch: PropTypes.any,       // 隐藏搜索条件
    config: PropTypes.object,        // 配置信息
    updateComponent: PropTypes.func  // 配置更新
@@ -53,11 +52,16 @@
  changeStyle = () => {
    const { config } = this.props
    MKEmitter.emit('changeStyle', [config.uuid, 'header'], ['font', 'border'], config.headerStyle)
    let options = ['font', 'border']
    if (config.type === 'menubar') {
      options.push('padding')
    }
    MKEmitter.emit('changeStyle', [config.uuid, 'header'], options, config.headerStyle)
  }
  render() {
    const { config, defaultshow, hideSearch } = this.props
    const { config, hideSearch } = this.props
    const { appType } = this.state
    let title = config.plot ? config.plot.title : config.wrap.title
@@ -67,10 +71,8 @@
      title = ' '
    }
    if (defaultshow === 'hidden') {
      if (!title && (!config.search || config.search.length === 0)) {
        show = false
      }
    if (!title && (!config.search || config.search.length === 0)) {
      show = false
    }
    let _style = resetStyle(config.headerStyle)