| | |
| | | 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, |
| | |
| | | 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 ( |