king
2022-01-21 46f79b491173d284a4900d19e7aecf7509481438
src/menu/components/chart/antv-bar/chartcompile/index.jsx
@@ -206,6 +206,7 @@
        dataIndex: 'title',
        inputType: 'select',
        editable: true,
        required: false,
        width: '12%',
        options: [
          { value: 'true', text: '显示'},
@@ -213,7 +214,23 @@
        ],
        render: (text, record) => {
          let trans = {'true': '显示', 'false': '隐藏'}
          return trans[text] || '显示'
          return trans[text] || ''
        }
      },
      {
        title: '显示',
        dataIndex: 'show',
        inputType: 'select',
        editable: true,
        required: false,
        width: '12%',
        options: [
          { value: 'value', text: '数值'},
          { value: 'percent', text: '百分比'}
        ],
        render: (text, record) => {
          let trans = {'value': '数值', 'percent': '百分比'}
          return trans[text] || ''
        }
      },
      {
@@ -601,6 +618,7 @@
  }
  render() {
    const { config } = this.props
    const { view, visible, datatype, plot, ramp, colorColumns, rampColorColumns, statColorColumns, rampStatColorColumns, cusColumns, baseFormlist } = this.state
    const formItemLayout = {
      labelCol: {
@@ -618,7 +636,7 @@
        <EditOutlined title="编辑" onClick={this.showDrawer}/>
        <Modal
          wrapClassName="popview-modal menu-chart-edit-modal"
          title="图表编辑"
          title={config.type === 'bar' ? '柱状图编辑' : '折线图编辑'}
          visible={visible}
          width={950}
          maskClosable={false}
@@ -685,7 +703,7 @@
                </Form>
              </Col>
              <Col style={{fontSize: '12px', color: '#757575', paddingLeft: '10px'}} span={24}>注:使用自定义设置时,显示的坐标轴第一个在左侧,第二个在右侧,多余的不生效。</Col>
              <EditTable actions={['edit', 'move']} data={plot.customs || []} columns={cusColumns} onChange={this.changeCustom}/>
              <EditTable indexShow={false} actions={['edit', 'move']} data={plot.customs || []} columns={cusColumns} onChange={this.changeCustom}/>
            </TabPane> : null}
          </Tabs>
        </Modal>