From f6626b05f1275cc2f8ca77f773d4f6a6af1b0a89 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 21 十一月 2022 16:11:55 +0800 Subject: [PATCH] 2022-11-21 --- src/menu/tableshell/card.jsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/menu/tableshell/card.jsx b/src/menu/tableshell/card.jsx index 55926ea..0fb151b 100644 --- a/src/menu/tableshell/card.jsx +++ b/src/menu/tableshell/card.jsx @@ -7,7 +7,7 @@ const AntvTabs = asyncComponent(() => import('@/menu/components/tabs/table-tabs')) const BaseTable = asyncComponent(() => import('@/menu/components/table/base-table')) -const Card = ({ id, card, delCard, updateConfig }) => { +const Card = ({ id, card, delCard, updateConfig, switchConfig }) => { const [, drop] = useDrop({ accept: 'menu', canDrop: () => true, @@ -20,7 +20,7 @@ if (card.type === 'table') { return (<BaseTable card={card} updateConfig={updateConfig}/>) } else if (card.type === 'tabs') { - return (<AntvTabs tabs={card} updateConfig={updateConfig} deletecomponent={delCard}/>) + return (<AntvTabs tabs={card} updateConfig={updateConfig} switchConfig={switchConfig} deletecomponent={delCard}/>) } } return ( -- Gitblit v1.8.0