From 71fce3cc19f80a6e0eba36cfc5e67995ee9712ff Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 23 七月 2020 09:23:59 +0800
Subject: [PATCH] 2020-07-23

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

diff --git a/src/templates/sharecomponent/chartgroupcomponent/chartform/index.jsx b/src/templates/sharecomponent/chartgroupcomponent/chartform/index.jsx
index 6d1a5b7..e530784 100644
--- a/src/templates/sharecomponent/chartgroupcomponent/chartform/index.jsx
+++ b/src/templates/sharecomponent/chartgroupcomponent/chartform/index.jsx
@@ -224,7 +224,7 @@
           item.hidden = false
         } else if (item.key === 'switch' && _type === 'card') {
           item.hidden = false
-        } else if (item.key === 'insert') {
+        } else if (item.key === 'extraAction') {
           item.hidden = _type !== 'card'
         } else if (item.key === 'bgfield') {
           item.hidden = _type !== 'card'
@@ -280,7 +280,7 @@
             item.hidden = false
           } else if (item.key === 'switch' && value === 'card') {
             item.hidden = false
-          } else if (item.key === 'insert') {
+          } else if (item.key === 'extraAction') {
             item.hidden = value !== 'card'
           } else if (item.key === 'bgfield') {
             item.hidden = value !== 'card'
@@ -401,7 +401,12 @@
       } else if (item.type === 'select') { // 涓嬫媺鎼滅储
         fields.push(
           <Col span={12} key={index}>
-            <Form.Item label={item.label}>
+            <Form.Item label={item.tooltip ?
+              <Tooltip placement="topLeft" overlayClassName={item.tooltipClass} title={item.tooltip}>
+                <Icon type="question-circle" />
+                {item.label}
+              </Tooltip> : item.label
+            }>
               {getFieldDecorator(item.key, {
                 initialValue: item.initVal || '',
                 rules: [
@@ -462,7 +467,12 @@
       } else if (item.type === 'multiselect') { // 澶氶��
         fields.push(
           <Col span={12} key={index}>
-            <Form.Item label={item.label}>
+            <Form.Item label={item.tooltip ?
+              <Tooltip placement="topLeft" overlayClassName={item.tooltipClass} title={item.tooltip}>
+                <Icon type="question-circle" />
+                {item.label}
+              </Tooltip> : item.label
+            }>
               {getFieldDecorator(item.key, {
                 initialValue: item.initVal || []
               })(

--
Gitblit v1.8.0