From 31ec63f0419895876cbaba99637a884a32d33d0d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 01 九月 2021 10:31:45 +0800
Subject: [PATCH] 2021-09-01

---
 src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx |   56 +++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 53 insertions(+), 3 deletions(-)

diff --git a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
index 4b38458..f6a8420 100644
--- a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
+++ b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
@@ -30,7 +30,7 @@
   //         return item
   //       })
   //     }
-  //   } catch {
+  //   } catch (e) {
   //     menulist = []
   //   }
   // } else {
@@ -41,7 +41,7 @@
   if (roleList) {
     try {
       roleList = JSON.parse(roleList)
-    } catch {
+    } catch (e) {
       roleList = []
     }
   } else {
@@ -312,7 +312,7 @@
         text: '鐧惧垎姣�'
       }]
     }, {
-      type: labelOptions.length > 2 ? 'select' : 'radio',
+      type: labelOptions.length > 20 ? 'select' : 'radio',
       key: 'label',
       label: '鏍囩',
       initVal: card.label || 'false',
@@ -365,6 +365,7 @@
       key: 'area',
       label: '闈㈢Н鍥�',
       initVal: card.area || 'false',
+      // tooltip: '浠呭湪褰㈢姸涓簊mooth鏃舵湁鏁堛��',
       required: false,
       forbid: ['bar'].includes(card.chartType),
       options: [{
@@ -404,6 +405,33 @@
         text: '鏋佸潗鏍�'
       }]
     }, {
+      type: 'radio',
+      key: 'grid',
+      label: '缃戞牸绾�',
+      initVal: card.grid || 'show',
+      required: false,
+      options: [{
+        value: 'show',
+        text: '鏄剧ず'
+      }, {
+        value: 'hidden',
+        text: '闅愯棌'
+      }]
+    }, {
+      type: 'radio',
+      key: 'y_line',
+      label: 'y杞磋竟绾�',
+      initVal: card.y_line || 'hidden',
+      tooltip: '鍥惧舰宸︿晶鎴栧彸渚х殑杈圭嚎銆�',
+      required: false,
+      options: [{
+        value: 'show',
+        text: '鏄剧ず'
+      }, {
+        value: 'hidden',
+        text: '闅愯棌'
+      }]
+    }, {
       type: 'number',
       key: 'barSize',
       label: '鏌卞舰瀹藉害',
@@ -426,6 +454,20 @@
       forbid: !['bar'].includes(card.chartType),
       required: false
     }, {
+      type: 'number',
+      key: 'min',
+      label: '鏈�灏忓��',
+      tooltip: 'y杞存渶灏忓�硷紝涓虹┖鏃惰嚜閫傚簲銆�',
+      initVal: card.min,
+      required: false
+    }, {
+      type: 'number',
+      key: 'max',
+      label: '鏈�澶у��',
+      tooltip: 'y杞存渶澶у�硷紝涓虹┖鏃惰嚜閫傚簲銆�',
+      initVal: card.max,
+      required: false
+    }, {
       type: 'color',
       key: 'color',
       label: '鑹茬郴',
@@ -434,6 +476,14 @@
       required: false
     }, {
       type: 'color',
+      key: 'lineColor',
+      label: '杞寸嚎棰滆壊',
+      initVal: card.lineColor,
+      tooltip: '鍧愭爣杞寸嚎鐨勯鑹诧紝鍖呮嫭x杞淬�亂杞村強缃戞牸绾裤��',
+      allowClear: true,
+      required: false
+    }, {
+      type: 'color',
       key: 'selectColor',
       label: '閫変腑棰滆壊',
       initVal: card.selectColor || '',

--
Gitblit v1.8.0