king
2021-05-25 f0453acf6bc27d8038e8601217980e4281768674
2021-05-25
1个文件已修改
47 ■■■■ 已修改文件
src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx 47 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx
@@ -174,16 +174,14 @@
        { value: 'query', text: Formdict['header.form.query'] },
        { value: 'statistics', text: Formdict['header.form.statistics'] }
      ]
    },
    {
    }, {
      type: 'select',
      key: 'Xaxis',
      label: 'X-轴',
      initVal: card.Xaxis || '',
      required: true,
      options: xfields
    },
    {
    }, {
      type: 'select',
      key: 'InfoType',
      label: '类型',
@@ -191,8 +189,7 @@
      hidden: card.datatype !== 'statistics',
      required: true,
      options: xfields
    },
    {
    }, {
      type: 'select',
      key: 'InfoValue',
      label: '值',
@@ -200,8 +197,7 @@
      hidden: card.datatype !== 'statistics',
      required: true,
      options: yfields
    },
    {
    }, {
      type: 'select',
      key: 'legend',
      label: '图例位置',
@@ -222,8 +218,7 @@
        { field: 'left-bottom', label: '左下' },
        { field: 'hidden', label: '隐藏' }
      ]
    },
    {
    }, {
      type: 'select',
      key: 'Yaxis',
      label: 'Y-轴',
@@ -232,16 +227,14 @@
      hidden: card.datatype === 'statistics',
      required: true,
      options: yfields
    },
    {
    }, {
      type: 'select',
      key: 'shape',
      label: '形状',
      initVal: card.shape || (shapes[0] && shapes[0].field),
      required: false,
      options: shapes
    },
    {
    }, {
      type: 'radio',
      key: 'tooltip',
      label: '悬浮提示',
@@ -254,8 +247,7 @@
        value: 'false',
        text: '隐藏'
      }]
    },
    {
    }, {
      type: 'radio',
      key: 'point',
      label: '点图',
@@ -269,8 +261,7 @@
        value: 'false',
        text: '隐藏'
      }]
    },
    {
    }, {
      type: 'radio',
      key: 'transpose',
      label: '变换',
@@ -284,8 +275,7 @@
        value: 'false',
        text: Formdict['model.false']
      }]
    },
    {
    }, {
      type: 'radio',
      key: 'show',
      label: '格式化',
@@ -298,8 +288,7 @@
        value: 'percent',
        text: '百分比'
      }]
    },
    {
    }, {
      type: 'radio',
      key: 'label',
      label: '标注值',
@@ -312,6 +301,20 @@
        value: 'false',
        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: 'adjust',