From 106263ec10e60ce6c406e4fd5eb76d195772d0f0 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 18 十二月 2020 18:07:05 +0800 Subject: [PATCH] 2020-12-18 --- src/tabviews/custom/components/card/prop-card/index.jsx | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/card/prop-card/index.jsx b/src/tabviews/custom/components/card/prop-card/index.jsx index 757af64..9ee4b69 100644 --- a/src/tabviews/custom/components/card/prop-card/index.jsx +++ b/src/tabviews/custom/components/card/prop-card/index.jsx @@ -10,6 +10,7 @@ import './index.scss' const CardItem = asyncComponent(() => import('../cardItem')) +const NormalHeader = asyncComponent(() => import('@/tabviews/custom/components/share/normalheader')) class DataCard extends Component { static propTpyes = { @@ -36,6 +37,7 @@ let _data = {} let _sync = false + if (_config.setting && _config.wrap.datatype !== 'static') { _sync = _config.setting.sync === 'true' @@ -132,10 +134,9 @@ _data = nextProps.data[config.dataName] if (_data && Array.isArray(_data)) { _data = _data[0] - } else { - _data = {} } } + if (_data) { _data.$$BID = BID || '' } @@ -263,6 +264,7 @@ <Spin /> </div> : null } + <NormalHeader config={config}/> <div className={`card-row-list ${config.wrap.cardType || ''} ${config.wrap.scale || ''}`}> {config.subcards.map((item, index) => ( <Col className={activeKey === index ? 'active' : ''} key={index} span={item.setting.width || 6} offset={item.offset || 0} onClick={() => {this.changeCard(index, item)}}> -- Gitblit v1.8.0