From 6c68ddaac837ebed30d291f0f8b864b830afaa8a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 21 七月 2022 01:01:22 +0800 Subject: [PATCH] 2022-07-21 --- src/tabviews/zshare/topSearch/index.jsx | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/tabviews/zshare/topSearch/index.jsx b/src/tabviews/zshare/topSearch/index.jsx index 0732185..049729e 100644 --- a/src/tabviews/zshare/topSearch/index.jsx +++ b/src/tabviews/zshare/topSearch/index.jsx @@ -53,7 +53,7 @@ let hasReqFields = false let forbid = false // header涓笉璁剧疆楂樼骇鎼滅储 - let _setting = {showAdv: false} + let _setting = {showAdv: false, show: false} if (setting) { _setting.show = setting.show !== 'false' @@ -64,14 +64,16 @@ _setting.ratio = setting.searchRatio || 6 _setting.labelwidth = setting.searchLwidth !== undefined ? setting.searchLwidth : 33.3 _setting.style = null - } else if (config && config.wrap) { - _setting.show = config.wrap.show !== 'false' - _setting.advanceType = config.wrap.advanceType || 'modal' - _setting.advWidth = config.wrap.advanceWidth || 1000 - _setting.placement = config.wrap.drawerPlacement || 'right' - _setting.ratio = config.wrap.searchRatio || 6 - _setting.labelwidth = config.wrap.searchLwidth !== undefined ? config.wrap.searchLwidth : 33.3 - _setting.style = null + } else if (config) { + if (config.wrap) { + _setting.show = config.wrap.show !== 'false' + _setting.advanceType = config.wrap.advanceType || 'modal' + _setting.advWidth = config.wrap.advanceWidth || 1000 + _setting.placement = config.wrap.drawerPlacement || 'right' + _setting.ratio = config.wrap.searchRatio || 6 + _setting.labelwidth = config.wrap.searchLwidth !== undefined ? config.wrap.searchLwidth : 33.3 + _setting.style = null + } if (config.type === 'search') { _setting.float = config.wrap.float || 'left' @@ -823,6 +825,7 @@ </Modal> : null} {setting.advanceType === 'drawer' ? <Drawer title="楂樼骇鎼滅储" + className="mk-search-drawer" width={setting.advWidth} height={setting.advHeight} maskClosable={false} -- Gitblit v1.8.0