From e543372cc70a19ff2630c79d8421c2c593e54e5f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 02 六月 2021 17:15:21 +0800 Subject: [PATCH] 2021-06-02 --- src/menu/components/share/normalheader/index.jsx | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/menu/components/share/normalheader/index.jsx b/src/menu/components/share/normalheader/index.jsx index d5bc448..f2274ba 100644 --- a/src/menu/components/share/normalheader/index.jsx +++ b/src/menu/components/share/normalheader/index.jsx @@ -5,6 +5,7 @@ import asyncComponent from '@/utils/asyncComponent' import MKEmitter from '@/utils/events.js' +import { resetStyle } from '@/utils/utils-custom.js' import './index.scss' const SearchComponent = asyncComponent(() => import('@/menu/components/share/searchcomponent')) @@ -61,9 +62,10 @@ show = false } } + let _style = resetStyle(config.headerStyle) return ( - <div className={'normal-header' + (!show ? ' hidden' : '')} style={config.headerStyle}> + <div className={'normal-header' + (!show ? ' hidden' : '') + (config.wrap && config.wrap.searchable === 'true' ? ' tree-search' : '')} style={_style}> <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={ <div className="mk-popover-control"> <Icon className="style" title="璋冩暣鏍峰紡" onClick={this.changeStyle} type="font-colors" /> @@ -71,6 +73,7 @@ } trigger="hover"> <span className="title">{title}</span> </Popover> + {config.wrap && config.wrap.searchable === 'true' ? <span className="ant-input-search ant-input-affix-wrapper"><span className="ant-input-suffix"><Icon type="search" /></span></span> : null} {hideSearch !== 'true' && config.search ? <SearchComponent config={config} updatesearch={this.props.updateComponent}/> : null} </div> ) -- Gitblit v1.8.0