From 46f79b491173d284a4900d19e7aecf7509481438 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 21 一月 2022 17:21:25 +0800 Subject: [PATCH] 2022-01-21 --- src/menu/components/chart/antv-bar/chartcompile/index.jsx | 24 +++++++++++++++++++++--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/menu/components/chart/antv-bar/chartcompile/index.jsx b/src/menu/components/chart/antv-bar/chartcompile/index.jsx index ee2421e..942c0cf 100644 --- a/src/menu/components/chart/antv-bar/chartcompile/index.jsx +++ b/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> -- Gitblit v1.8.0