From 8d66ff34fae5b048a6b7923cc75d34f13a08be9d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 02 八月 2022 11:42:43 +0800
Subject: [PATCH] Merge branch 'develop'

---
 src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx |   43 ++++++++++++++++++++++++++++---------------
 1 files changed, 28 insertions(+), 15 deletions(-)

diff --git a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
index 784141f..8a3a691 100644
--- a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
+++ b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
@@ -258,6 +258,8 @@
     }])
   }
 
+  let _label = card.label || 'false'
+
   return [
     {
       type: 'radio',
@@ -389,7 +391,7 @@
       type: labelOptions.length > 20 ? 'select' : 'radio',
       key: 'label',
       label: '鏍囨敞',
-      initVal: card.label || 'false',
+      initVal: _label,
       tooltip: '鍥惧舰鑺傜偣澶勭殑鏁板�笺��',
       required: false,
       options: labelOptions
@@ -400,6 +402,7 @@
       initVal: card.labelColor || 'system',
       tooltip: '浣跨敤绯荤粺鑹叉椂锛屼娇鐢ㄨ壊绯婚�夐」璁剧疆鐨勭郴缁熼鑹诧紝浣跨敤鑷畾涔変负棰滆壊璁剧疆涓畾涔夌殑鍥惧舰棰滆壊銆�',
       required: false,
+      hidden: _label !== 'true',
       options: [{
         value: 'system',
         text: '绯荤粺'
@@ -407,20 +410,21 @@
         value: 'custom',
         text: '鑷畾涔�'
       }]
-    // }, {
-    //   type: 'radio',
-    //   key: 'offset',
-    //   label: '鏍囨敞浣嶇疆',
-    //   initVal: card.offset || 'outer',
-    //   required: false,
-    //   options: [{
-    //     value: 'outer',
-    //     text: '澶栭儴'
-    //   }, {
-    //     value: 'inner',
-    //     text: '鍐呴儴'
-    //   }],
-    //   forbid: card.chartType !== 'bar'
+    }, {
+      type: 'radio',
+      key: 'labelValue',
+      label: '鏍囨敞鍊�',
+      initVal: card.labelValue || 'default',
+      tooltip: '鏍囨敞鍊肩殑鏄剧ず瑙勫垯銆�',
+      required: false,
+      hidden: _label === 'false',
+      options: [{
+        value: 'default',
+        text: '榛樿'
+      }, {
+        value: 'zero',
+        text: '闅愯棌 0 鍊�'
+      }],
     }, {
       type: 'radio',
       key: 'adjust',
@@ -568,6 +572,15 @@
       initVal: card.max,
       required: false
     }, {
+      type: 'number',
+      key: 'XLimit',
+      min: 2,
+      label: '瀛楃闄愬埗',
+      tooltip: 'X杞存渶澶у瓧绗﹂檺鍒躲��',
+      initVal: card.XLimit || 11,
+      forbid: appType === 'mob',
+      required: false
+    }, {
       type: 'color',
       key: 'color',
       label: '鑹茬郴',

--
Gitblit v1.8.0