From c16559ea1e1204940790d0448df734ce4deedaed Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 10 Mar 2023 10:54:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/AiEchart/template/line/lineChart1.js | 11 ++++++++--- components/AiEchart/template/line/lineChart3.js | 15 ++++++++++----- components/layout/AiDvPanel/borders/border6.vue | 1 + ui/packages/tools/AiEchartV2.vue | 5 +++-- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/components/AiEchart/template/line/lineChart1.js b/components/AiEchart/template/line/lineChart1.js index 853bbe0a..7f223d7f 100644 --- a/components/AiEchart/template/line/lineChart1.js +++ b/components/AiEchart/template/line/lineChart1.js @@ -22,7 +22,12 @@ export default { }, daemon: (color) => ({ showSymbol: false, - lineStyle: { shadowBlur: 4, shadowOffsetY: 2 }, + smooth: true, + lineStyle: { + shadowBlur: 4, + shadowOffsetY: 2, + width: 2 + }, areaStyle: { color: { type: 'linear', @@ -31,8 +36,8 @@ export default { y: 0, y2: 1, colorStops: [ - { offset: 0, color: tools.$colorUtils.Hex2RGBA(color, 0.5) }, - { offset: 1, color: tools.$colorUtils.Hex2RGBA(color, 0.5) } + { offset: 0, color: tools.$colorUtils.Hex2RGBA(color, 0.3) }, + { offset: 1, color: tools.$colorUtils.Hex2RGBA(color, 0.1) } ] } } diff --git a/components/AiEchart/template/line/lineChart3.js b/components/AiEchart/template/line/lineChart3.js index d59080b1..60b7299b 100644 --- a/components/AiEchart/template/line/lineChart3.js +++ b/components/AiEchart/template/line/lineChart3.js @@ -1,8 +1,8 @@ export default { - legend: { - right: 0, itemGap: 16, - textStyle: {color: '#fff', padding: [0, 0, 0, 8], fontSize: 14}, - }, + // legend: { + // right: 0, itemGap: 16, + // textStyle: {color: '#fff', padding: [0, 0, 0, 8], fontSize: 14}, + // }, grid: { left: 50, right: 0 }, @@ -11,6 +11,11 @@ export default { textStyle: {color: '#fff'} }, daemon: { - lineStyle: {shadowBlur: 4, shadowOffsetY: 2}, + smooth: true, + lineStyle: { + shadowBlur: 1, + shadowOffsetY: 2, + width: 2 + } } } diff --git a/components/layout/AiDvPanel/borders/border6.vue b/components/layout/AiDvPanel/borders/border6.vue index 3b5bf21c..117bcfb9 100644 --- a/components/layout/AiDvPanel/borders/border6.vue +++ b/components/layout/AiDvPanel/borders/border6.vue @@ -27,6 +27,7 @@ export default { padding: 4px 0 0 22px; color: #fff; font-size: 22px; + font-weight: 500; background-image: url(../asset/title6.png); background-position: bottom; background-size: 100% 7px; diff --git a/ui/packages/tools/AiEchartV2.vue b/ui/packages/tools/AiEchartV2.vue index df8a4385..364720d7 100644 --- a/ui/packages/tools/AiEchartV2.vue +++ b/ui/packages/tools/AiEchartV2.vue @@ -45,7 +45,7 @@ export default { computed: { colors() { if (this.theme === '0') { - return ['#00F9FF', '#EC6666', '#FC3BFF', '#1890FF', '#95FF44', '#ea7ccc'] + return ['#00F9FF', '#1890FF', '#B13BFF', '#FC3BFF', '#95FF44', '#ea7ccc'] } return ['#D4380D', '#CF1322', '#D55800', '#FA8C16', '#FFC53D', '#FFA940', '#FFC53D', '#780000'] @@ -69,7 +69,8 @@ export default { }, axisLine: { lineStyle: { - color: this.theme === '1' ? 'rgba(239, 163, 51, 0.8)' : 'rgba(255,255,255,.5)' + color: this.theme === '1' ? 'rgba(239, 163, 51, 0.8)' : 'rgba(255,255,255,.5)', + width: 1 } } },