From 49f09cc6f8ff8c30a75ed1a9d6f510b69b73962a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 12 十二月 2023 21:05:37 +0800 Subject: [PATCH] 2023-12-12 --- src/tabviews/custom/components/share/normalheader/index.jsx | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/tabviews/custom/components/share/normalheader/index.jsx b/src/tabviews/custom/components/share/normalheader/index.jsx index 9643142..0b19275 100644 --- a/src/tabviews/custom/components/share/normalheader/index.jsx +++ b/src/tabviews/custom/components/share/normalheader/index.jsx @@ -9,7 +9,6 @@ class NormalHeader extends Component { static propTpyes = { BID: PropTypes.any, // 涓婄骇涓婚敭鍊� - menuType: PropTypes.any, // 鑿滃崟绫诲瀷 config: PropTypes.object, // 閰嶇疆淇℃伅 refresh: PropTypes.func // 鏉′欢鍒锋柊 } @@ -24,7 +23,7 @@ this.setState({ title: config.plot ? config.plot.title : config.wrap.title, - show: !['normaltable', 'propcard'].includes(config.subtype) && config.search && config.search.length > 0 + show: !['normaltable', 'propcard', 'editable'].includes(config.subtype) && config.search && config.search.length > 0 }) } @@ -40,15 +39,15 @@ } render() { - const { config, menuType, BID } = this.props + const { config, BID } = this.props const { title, show } = this.state if (!title && !show) return null return ( - <div className="normal-header" style={config.headerStyle}> + <div className={'normal-header' + (show ? ' header-search' : '')} style={config.headerStyle}> <span className="title">{title}</span> - {show ? <SearchComponent config={config} BID={BID} menuType={menuType} refreshdata={this.props.refresh}/> : null} + {show ? <SearchComponent config={config} BID={BID} refreshdata={this.props.refresh}/> : null} </div> ) } -- Gitblit v1.8.0