From b69b5f6329ca5f87932436b7a6c1ddfc3377e10f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 16 五月 2024 10:56:41 +0800
Subject: [PATCH] 2024-05-16

---
 src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx |  122 ++--------------------------------------
 1 files changed, 8 insertions(+), 114 deletions(-)

diff --git a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
index 3b9d0e8..a808760 100644
--- a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
+++ b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
@@ -128,7 +128,6 @@
       controlFields: [
         {field: 'menu', values: ['menu']},
         {field: 'open', values: ['menu', 'menus']},
-        {field: 'joint', values: ['menu', 'menus']},
         {field: 'menuType', values: ['menus']},
         {field: 'menus', values: ['menus']},
       ]
@@ -165,19 +164,6 @@
         {value: 'self', label: '褰撳墠绐楀彛'},
       ],
       forbid: appType !== 'pc' || card.chartType !== 'bar',
-      hidden: card.click !== 'menu' && card.click !== 'menus'
-    },
-    {
-      type: 'radio',
-      field: 'joint',
-      label: '鍙傛暟鎷兼帴',
-      initval: card.joint || 'true',
-      required: false,
-      options: [
-        {value: 'true', label: '鏄�'},
-        {value: 'false', label: '鍚�'},
-      ],
-      forbid: appType === 'mob' || card.chartType !== 'bar',
       hidden: card.click !== 'menu' && card.click !== 'menus'
     },
     {
@@ -407,27 +393,11 @@
         value: 'false',
         label: '闅愯棌'
       }]
-    // }, {
-    //   type: 'radio',
-    //   field: 'transpose',
-    //   label: '鍙樻崲',
-    //   initval: card.transpose || 'false',
-    //   tooltip: '妯旱鍧愭爣杞翠氦鎹�',
-    //   forbid: card.chartType === 'line',
-    //   required: false,
-    //   options: [{
-    //     value: 'true',
-    //     label: '鏄�'
-    //   }, {
-    //     value: 'false',
-    //     label: '鍚�'
-    //   }]
     }, {
       type: 'radio',
       field: 'show',
       label: '鏄剧ず',
       initval: card.show || 'value',
-      // tooltip: '褰撲娇鐢ㄨ嚜瀹氫箟璁剧疆鏃讹紝鍙湪鏄剧ず锛堝��/%锛夊鍗曠嫭璁剧疆鏄剧ず绫诲瀷銆傛敞锛氳嚜瀹氫箟涓虹┖鏃朵娇鐢ㄦ澶勮缃��',
       required: false,
       options: [{
         value: 'value',
@@ -448,36 +418,8 @@
       required: false,
       options: labelOptions,
       controlFields: [
-        {field: 'labelColor', values: ['true']}
+        {field: 'labelUnit', values: ['true', 'top', 'middle', 'bottom']}
       ]
-    // }, {
-    //   type: 'radio',
-    //   field: 'labelColor',
-    //   label: '鏍囨敞棰滆壊',
-    //   initval: card.labelColor || 'system',
-    //   tooltip: '浣跨敤绯荤粺鑹叉椂锛屼娇鐢ㄨ壊绯婚�夐」璁剧疆鐨勭郴缁熼鑹诧紝浣跨敤鑷畾涔変负棰滆壊璁剧疆涓畾涔夌殑鍥惧舰棰滆壊銆�',
-    //   required: false,
-    //   options: [{
-    //     value: 'system',
-    //     label: '绯荤粺'
-    //   }, {
-    //     value: 'custom',
-    //     label: '鑷畾涔�'
-    //   }]
-    // }, {
-    //   type: 'radio',
-    //   field: 'labelValue',
-    //   label: '鏍囨敞鍊�',
-    //   initval: card.labelValue || 'default',
-    //   tooltip: '鏍囨敞鍊肩殑鏄剧ず瑙勫垯銆�',
-    //   required: false,
-    //   options: [{
-    //     value: 'default',
-    //     label: '榛樿'
-    //   }, {
-    //     value: 'zero',
-    //     label: '闅愯棌 0 鍊�'
-    //   }],
     }, {
       type: 'radio',
       field: 'adjust',
@@ -533,20 +475,6 @@
         value: 'false',
         label: '涓嶆樉绀�'
       }]
-    // }, {
-    //   type: 'radio',
-    //   field: 'coordinate',
-    //   label: '鍧愭爣',
-    //   initval: card.coordinate || 'angle',
-    //   required: false,
-    //   forbid: card.chartType === 'line',
-    //   options: [{
-    //     value: 'angle',
-    //     label: '浜岀淮鍧愭爣'
-    //   }, {
-    //     value: 'polar',
-    //     label: '鏋佸潗鏍�'
-    //   }]
     }, {
       type: 'checkbox',
       field: 'axis',
@@ -585,47 +513,6 @@
       controlFields: [
         {field: 'color', notNull: true},
       ]
-    // }, {
-    //   type: 'radio',
-    //   field: 'grid',
-    //   label: '缃戞牸绾�',
-    //   initval: card.grid || 'show',
-    //   required: false,
-    //   options: [{
-    //     value: 'show',
-    //     label: '鏄剧ず'
-    //   }, {
-    //     value: 'hidden',
-    //     label: '闅愯棌'
-    //   }]
-    // }, {
-    //   type: 'radio',
-    //   field: 'y_line',
-    //   label: 'y杞磋竟绾�',
-    //   initval: card.y_line || 'hidden',
-    //   tooltip: '鍥惧舰宸︿晶鎴栧彸渚х殑杈圭嚎銆�',
-    //   required: false,
-    //   options: [{
-    //     value: 'show',
-    //     label: '鏄剧ず'
-    //   }, {
-    //     value: 'hidden',
-    //     label: '闅愯棌'
-    //   }]
-    // }, {
-    //   type: 'radio',
-    //   field: 'download',
-    //   label: '瀵煎嚭鍥剧墖',
-    //   initval: card.download || 'forbid',
-    //   required: false,
-    //   forbid: appType === 'mob',
-    //   options: [{
-    //     value: 'forbid',
-    //     label: '绂佺敤'
-    //   }, {
-    //     value: 'enable',
-    //     label: '鍚敤'
-    //   }]
     }, {
       type: 'radio',
       field: 'empty',
@@ -682,6 +569,13 @@
       forbid: appType === 'mob',
       required: false
     }, {
+      type: 'text',
+      field: 'labelUnit',
+      label: '鏍囨敞鍗曚綅',
+      initval: card.labelUnit ||'',
+      forbid: appType === 'mob',
+      required: false
+    }, {
       type: 'color',
       field: 'lineColor',
       label: '鍧愭爣杞撮鑹�',

--
Gitblit v1.8.0