From 5902ba5c3ff85efc78c95364196cd6ab5d2d1601 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 11 十月 2020 12:21:17 +0800 Subject: [PATCH] 2020-10-11 --- src/tabviews/custom/index.jsx | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index d120eff..e361d2b 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -19,6 +19,7 @@ // 閫氱敤缁勪欢 const AntvBarAndLine = asyncSpinComponent(() => import('./components/chart/antv-bar-line')) const AntvTabs = asyncSpinComponent(() => import('./components/tabs/antv-tabs')) +const DataCard = asyncSpinComponent(() => import('./components/card/data-card')) class NormalTable extends Component { static propTpyes = { @@ -450,6 +451,16 @@ <AntvTabs config={item} BID={BID} mainSearch={mainSearch} menuType={menuType} dataManager={dataManager} /> </Col> ) + } else if (item.type === 'card') { + if (item.subtype === 'datacard') { + return ( + <Col span={item.width} key={item.uuid}> + <DataCard config={item} BID={BID} mainSearch={mainSearch} menuType={menuType} dataManager={dataManager} /> + </Col> + ) + } else { + return null + } } else { return null } @@ -463,7 +474,7 @@ return ( <div className="custom-page-wrap" id={this.state.ContainerId} style={config ? config.style : null}> {loadingview && <Spin size="large" />} - <Row gutter={8}>{this.getComponents()}</Row> + <Row>{this.getComponents()}</Row> {options.sysType !== 'cloud' ? <Button icon="copy" shape="circle" -- Gitblit v1.8.0