From ff4295358a99b2d35265a5fed445e4407cf6ed9a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 18 五月 2020 14:48:10 +0800
Subject: [PATCH] 2020-05-18

---
 src/templates/sharecomponent/chartgroupcomponent/chartform/index.jsx |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/templates/sharecomponent/chartgroupcomponent/chartform/index.jsx b/src/templates/sharecomponent/chartgroupcomponent/chartform/index.jsx
index 1b0edb1..e8a9eb5 100644
--- a/src/templates/sharecomponent/chartgroupcomponent/chartform/index.jsx
+++ b/src/templates/sharecomponent/chartgroupcomponent/chartform/index.jsx
@@ -111,17 +111,17 @@
     {
       uuid: 'card1',
       url: card1,
-      type: 'card1'
+      subelement: ['content']
     },
     {
       uuid: 'card2',
       url: card2,
-      type: 'card2'
+      subelement: ['content', 'avatar']
     },
     {
       uuid: 'card3',
       url: card3,
-      type: 'card3'
+      subelement: ['content', 'avatar', 'header', 'actions']
     }
   ]
 }
@@ -417,7 +417,7 @@
               result.Yaxis = result.Yaxis[0] || ''
             }
           } else if (result.chartType === 'card') {
-            result.cardType = selectlegend.type
+            result.subelement = selectlegend.subelement
 
             if (!result.details) {
               result.details = [
@@ -425,7 +425,11 @@
                 {bold: 'false', uuid: 'carddescription', content: 'Card content', datatype: 'static', align: 'left'}
               ]
               result.actions = []
-              result.title = ''
+              result.header = {
+                title: {content: 'Card title', datatype: 'static'},
+                actions: []
+              }
+              result.avatar = {content: 'https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png', datatype: 'static', width: 32, height: 32}
             }
           }
 

--
Gitblit v1.8.0