From cb9ade2afd2a367ad767bc605ab7086c695dd010 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 09 十二月 2022 15:53:32 +0800
Subject: [PATCH] 2022-12-09

---
 src/pc/menushell/card.jsx |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/src/pc/menushell/card.jsx b/src/pc/menushell/card.jsx
index bd25267..085daf7 100644
--- a/src/pc/menushell/card.jsx
+++ b/src/pc/menushell/card.jsx
@@ -17,7 +17,8 @@
 const NormalTable = asyncComponent(() => import('@/menu/components/table/normal-table'))
 const EditTable = asyncComponent(() => import('@/menu/components/table/edit-table'))
 const NormalGroup = asyncComponent(() => import('@/menu/components/group/normal-group'))
-const NormalForm = asyncComponent(() => import('@/menu/components/form/normal-form'))
+const SimpleForm = asyncComponent(() => import('@/menu/components/form/simple-form'))
+const StepForm = asyncComponent(() => import('@/menu/components/form/step-form'))
 const TabForm = asyncComponent(() => import('@/menu/components/form/tab-form'))
 const BraftEditor = asyncComponent(() => import('@/menu/components/editor/braft-editor'))
 const CodeSandbox = asyncComponent(() => import('@/menu/components/code/sandbox'))
@@ -28,6 +29,8 @@
 const Balcony = asyncComponent(() => import('@/menu/components/card/balcony'))
 const CustomChart = asyncComponent(() => import('@/menu/components/chart/chart-custom'))
 const Timeline = asyncComponent(() => import('@/menu/components/timeline/normal-timeline'))
+const AntvG6 = asyncComponent(() => import('@/menu/components/chart/antv-G6'))
+const Iframe = asyncComponent(() => import('@/menu/components/iframe'))
 
 const Card = ({ id, card, moveCard, findCard, delCard, updateConfig }) => {
   const originalIndex = findCard(id).index
@@ -62,6 +65,11 @@
   if (isDragging) {
     style = { opacity: 0.3}
   }
+
+  if (card.style && card.style.clear === 'left') {
+    style.clear = 'left'
+  }
+  
   let col = ' ant-col ant-col-' + (card.width || 24)
   if (card.type === 'login') {
     let height = ''
@@ -84,8 +92,10 @@
       return (<AntvBar card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
     } else if (card.type === 'navbar') {
       return (<NormalNavbar card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
+    } else if (card.type === 'form' && card.subtype === 'simpleform') {
+      return (<SimpleForm card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
     } else if (card.type === 'form' && card.subtype === 'stepform') {
-      return (<NormalForm card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
+      return (<StepForm card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
     } else if (card.type === 'form' && card.subtype === 'tabform') {
       return (<TabForm card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
     } else if (card.type === 'search') {
@@ -108,7 +118,7 @@
       return (<CarouselDataCard card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
     } else if (card.type === 'carousel' && card.subtype === 'propcard') {
       return (<CarouselPropCard card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
-    } else if (card.type === 'table' && card.subtype === 'tablecard') {
+    } else if (card.type === 'card' && card.subtype === 'tablecard') {
       return (<TableCard card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
     } else if (card.type === 'table' && card.subtype === 'normaltable') {
       return (<NormalTable card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
@@ -128,6 +138,10 @@
       return (<Timeline card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
     } else if (card.type === 'chart') {
       return (<CustomChart card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
+    } else if (card.type === 'antvG6') {
+      return (<AntvG6 card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
+    } else if (card.type === 'iframe') {
+      return (<Iframe card={card} updateConfig={updateConfig} deletecomponent={delCard}/>)
     }
   }
 

--
Gitblit v1.8.0