From 79943222ed0edc6bd35ab2858c5eda2bc3246f66 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 28 二月 2022 15:03:45 +0800 Subject: [PATCH] 2022-02-28 --- src/tabviews/custom/components/share/tabtransfer/index.jsx | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/tabviews/custom/components/share/tabtransfer/index.jsx b/src/tabviews/custom/components/share/tabtransfer/index.jsx index 24afb5d..efd711f 100644 --- a/src/tabviews/custom/components/share/tabtransfer/index.jsx +++ b/src/tabviews/custom/components/share/tabtransfer/index.jsx @@ -34,6 +34,7 @@ const CarouselDataCard = asyncComponent(() => import('@/tabviews/custom/components/carousel/data-card')) const CarouselPropCard = asyncComponent(() => import('@/tabviews/custom/components/carousel/prop-card')) const Balcony = asyncComponent(() => import('@/tabviews/custom/components/card/balcony')) +const CustomChart = asyncComponent(() => import('@/tabviews/custom/components/chart/custom-chart')) class TabTransfer extends Component { static propTpyes = { @@ -67,6 +68,7 @@ } let params = [] + let delay = 20 config.components.forEach(item => { if (item.type === 'tabs' || item.type === 'group') return @@ -95,6 +97,8 @@ } } else { item.setting.sync = 'false' + item.setting.delay = delay + delay += 20 } }) @@ -284,6 +288,12 @@ <Balcony config={item} data={data} BID={BID} menuType={menuType} /> </Col> ) + } else if (item.type === 'chart') { + return ( + <Col span={item.width} key={item.uuid}> + <CustomChart config={item} data={data} BID={BID} mainSearch={mainSearch} menuType={menuType} /> + </Col> + ) } else { return null } -- Gitblit v1.8.0