king
2020-12-16 06404e701a89955958cbf56213e2eec618d8644d
src/menu/components/share/normalheader/index.jsx
@@ -12,6 +12,7 @@
class NormalHeader extends Component {
  static propTpyes = {
    defaultshow: PropTypes.any,      // 标题与搜索条件不存在时隐藏
    hideSearch: PropTypes.any,       // 隐藏搜索条件
    config: PropTypes.object,        // 配置信息
    updateComponent: PropTypes.func  // 配置更新
  }
@@ -51,7 +52,7 @@
  }
  render() {
    const { config, defaultshow } = this.props
    const { config, defaultshow, hideSearch } = this.props
    let title = config.plot ? config.plot.title : config.wrap.title
    let show = true
@@ -70,7 +71,7 @@
        } trigger="hover">
          <span className="title">{title}</span>
        </Popover>
        {config.search ? <SearchComponent config={config} updatesearch={this.props.updateComponent}/> : null}
        {hideSearch !== 'true' && config.search ? <SearchComponent config={config} updatesearch={this.props.updateComponent}/> : null}
      </div>
    )
  }