From 0e5c395b974b187b4227ed86dac746131425052a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 19 十一月 2023 12:21:18 +0800 Subject: [PATCH] 2023-11-19 --- src/menu/components/chart/antv-bar/chartcompile/index.jsx | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/menu/components/chart/antv-bar/chartcompile/index.jsx b/src/menu/components/chart/antv-bar/chartcompile/index.jsx index 617bbc3..4604d38 100644 --- a/src/menu/components/chart/antv-bar/chartcompile/index.jsx +++ b/src/menu/components/chart/antv-bar/chartcompile/index.jsx @@ -209,7 +209,7 @@ ], render: (text, record) => { let trans = {'true': '鏄剧ず', 'false': '闅愯棌'} - return trans[text] || '闅愯棌' + return trans[text] || '' } }, { @@ -237,10 +237,11 @@ width: '12%', options: [ { value: 'value', text: '鏁板��'}, - { value: 'percent', text: '鐧惧垎姣�'} + { value: 'percent', text: '鐧惧垎姣�'}, + { value: 'thdSeparator', text: '鍗冨垎浣�'} ], render: (text, record) => { - let trans = {'value': '鏁板��', 'percent': '鐧惧垎姣�'} + let trans = {value: '鏁板��', percent: '鐧惧垎姣�', thdSeparator: '鍗冨垎浣�'} return trans[text] || '' } }, @@ -249,6 +250,7 @@ dataIndex: 'min', inputType: 'number', editable: true, + max: 9999999999, required: false, width: '12%' }, @@ -257,6 +259,7 @@ dataIndex: 'max', inputType: 'number', editable: true, + max: 9999999999, required: false, width: '12%' }, @@ -647,8 +650,8 @@ _plot.customs = [] delete _plot.Yaxis } else if (!is(fromJS(values.Yaxis), fromJS(plot.Yaxis || []))) { - _plot.enabled = 'false' - _plot.colors = null + // _plot.enabled = 'false' + // _plot.colors = null let cus = {} _plot.customs && _plot.customs.forEach(m => { @@ -662,7 +665,7 @@ type: item, name: labels[item] || item, axis: i === 0 ? 'true' : 'false', - label: 'false', + label: _plot.label === 'false' ? 'false' : true, title: 'true', shape: _plot.chartType === 'bar' && i === 0 ? ['bar', 'rect'] : ['line', 'smooth'] } @@ -820,7 +823,7 @@ <Modal wrapClassName="mk-pop-modal" visible={visible} - width={1000} + width={1100} maskClosable={false} onOk={this.onSubmit} onCancel={() => { this.setState({ visible: false }) }} -- Gitblit v1.8.0