From 9cfccf5bd28a860fad48fe74ad7ea49d8af40dec Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 03 十一月 2022 12:52:27 +0800 Subject: [PATCH] 2022-11-03 --- src/menu/components/share/normalheader/index.jsx | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/menu/components/share/normalheader/index.jsx b/src/menu/components/share/normalheader/index.jsx index 2f552fd..acc4e22 100644 --- a/src/menu/components/share/normalheader/index.jsx +++ b/src/menu/components/share/normalheader/index.jsx @@ -48,24 +48,24 @@ changeStyle = () => { const { config } = this.props - let options = ['font', 'border', 'background'] - if (config.type === 'menubar') { - options.push('padding') - } + let options = ['font', 'border', 'background', 'padding'] MKEmitter.emit('changeStyle', options, config.headerStyle, this.getStyle) } render() { const { config, hideSearch } = this.props - // const { appType } = this.state - let title = config.plot ? config.plot.title : config.wrap.title + let title = '' let show = true - // if (!title && appType === 'mob' && config.type === 'card' && config.subtype === 'datacard' && config.action && config.action.length) { - // title = ' ' - // } + if (config.plot) { + title = config.plot.title + } else if (config.type === 'group') { + title = config.setting.title || '' + } else if (config.wrap) { + title = config.wrap.title || '' + } if (!title && (!config.search || config.search.length === 0 || hideSearch === 'true')) { show = false -- Gitblit v1.8.0