king
2024-05-16 b69b5f6329ca5f87932436b7a6c1ddfc3377e10f
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: '坐标轴颜色',