From c7df940632b5f238f524da651fbf27a91ff6ad36 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 26 十月 2020 16:54:46 +0800
Subject: [PATCH] 2020-10-26

---
 src/tabviews/custom/index.jsx |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx
index 7a3c2f1..cd29a77 100644
--- a/src/tabviews/custom/index.jsx
+++ b/src/tabviews/custom/index.jsx
@@ -21,6 +21,7 @@
 const AntvPie = asyncSpinComponent(() => import('./components/chart/antv-pie'))
 const AntvTabs = asyncSpinComponent(() => import('./components/tabs/antv-tabs'))
 const DataCard = asyncSpinComponent(() => import('./components/card/data-card'))
+const PropCard = asyncSpinComponent(() => import('./components/card/prop-card'))
 
 class CustomPage extends Component {
   static propTpyes = {
@@ -176,7 +177,7 @@
         }
       }
 
-      if (!component.format) return component // 娌℃湁鍔ㄦ�佹暟鎹�  鏁版嵁鏍煎紡 array 鎴� object
+      if (!component.format || (component.subtype === 'propcard' && component.wrap.datatype === 'static')) return component // 娌℃湁鍔ㄦ�佹暟鎹�  鏁版嵁鏍煎紡 array 鎴� object
 
       let _customScript = ''
       component.scripts && component.scripts.forEach(script => {
@@ -465,6 +466,12 @@
               <DataCard config={item} BID={BID} mainSearch={mainSearch} menuType={menuType} dataManager={dataManager} />
             </Col>
           )
+        } else if (item.subtype === 'propcard') {
+          return (
+            <Col span={item.width} key={item.uuid}>
+              <PropCard config={item} data={data} BID={BID} mainSearch={mainSearch} menuType={menuType} dataManager={dataManager} />
+            </Col>
+          )
         } else {
           return null
         }

--
Gitblit v1.8.0