From e44c622efee02beafab30da2a91561e8892e26ef Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 14 五月 2022 14:11:39 +0800 Subject: [PATCH] 2022-05-14 --- src/tabviews/custom/components/chart/antv-bar-line/index.jsx | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/chart/antv-bar-line/index.jsx b/src/tabviews/custom/components/chart/antv-bar-line/index.jsx index 5da0967..e2e00e8 100644 --- a/src/tabviews/custom/components/chart/antv-bar-line/index.jsx +++ b/src/tabviews/custom/components/chart/antv-bar-line/index.jsx @@ -296,8 +296,12 @@ marker: { symbol: item.chartType === 'bar' ? 'square' : 'hyphen', style: { stroke: item.color,fill: item.color, r: 5, lineWidth: 2 } } }) - if ((!_config.plot.Bar_axis || item.chartType !== 'bar') && item.show) { // 鎶樼嚎鍥炬垨閲嶅彔涓嬬殑鏌辩姸鍥惧彲鍗曠嫭璁剧疆鏄剧ず绫诲瀷 - vFieldsShow[item.type] = item.show + if (!_config.plot.Bar_axis || item.chartType !== 'bar') { // 鎶樼嚎鍥炬垨閲嶅彔涓嬬殑鏌辩姸鍥惧彲鍗曠嫭璁剧疆鏄剧ず绫诲瀷 + if (item.show) { + vFieldsShow[item.type] = item.show + } else { + item.show = _config.plot.show + } } }) _config.plot.customs = fields @@ -309,6 +313,7 @@ } }) } + console.log(vFields) this.setState({ config: _config, -- Gitblit v1.8.0