king
2022-10-22 03a22ec6f9ad7303d10b4c65bb5bc6fa5cbd448a
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 (