From 5944c2832820a8bfa86e3efb5085f5a2463897f9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 22 九月 2020 09:14:49 +0800 Subject: [PATCH] 2020-09-22 --- src/tabviews/custom/index.jsx | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index 01d96fd..73c9e71 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -18,6 +18,7 @@ // 閫氱敤缁勪欢 const AntvBarAndLine = asyncSpinComponent(() => import('./components/chart/antv-bar-line')) +const AntvTabs = asyncSpinComponent(() => import('./components/tabs/antv-tabs')) class NormalTable extends Component { static propTpyes = { @@ -296,6 +297,7 @@ * @description 涓昏〃鏁版嵁鍔犺浇 */ loadmaindata = (params) => { + if (!params || params.length === 0) return let LText_field = [] let LText = params.map((item, index) => { let _sql = item.sql @@ -442,6 +444,12 @@ <AntvBarAndLine config={item} data={data} BID={BID} mainSearch={mainSearch} menuType={menuType} dataManager={dataManager} /> </Col> ) + } else if (item.type === 'tabs') { + return ( + <Col span={item.setting.span} key={item.uuid}> + <AntvTabs config={item} BID={BID} mainSearch={mainSearch} menuType={menuType} dataManager={dataManager} /> + </Col> + ) } else { return null } -- Gitblit v1.8.0