From d2e40baf2d6ee0469d9b788048d5c6a2c316a694 Mon Sep 17 00:00:00 2001 From: junjie Date: Wed, 20 Oct 2021 11:32:05 +0800 Subject: [PATCH 1/5] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/icons/svg/more_v.svg | 1 + frontend/src/views/chart/chart/chart.js | 13 ++++++++++ .../chart/components/ChartComponentG2.vue | 2 -- .../BackgroundColorSelector.vue | 7 ++--- .../component-style/LegendSelector.vue | 7 ++--- .../component-style/LegendSelectorAntV.vue | 7 ++--- .../component-style/SplitSelector.vue | 13 +++++----- .../component-style/SplitSelectorAntV.vue | 9 ++++--- .../component-style/TitleSelector.vue | 7 ++--- .../component-style/TitleSelectorAntV.vue | 7 ++--- .../component-style/XAxisSelector.vue | 11 ++++---- .../component-style/XAxisSelectorAntV.vue | 11 ++++---- .../component-style/YAxisExtSelector.vue | 11 ++++---- .../component-style/YAxisExtSelectorAntV.vue | 11 ++++---- .../component-style/YAxisSelector.vue | 11 ++++---- .../component-style/YAxisSelectorAntV.vue | 11 ++++---- .../components/shape-attr/ColorSelector.vue | 17 ++++++------ .../components/shape-attr/LabelSelector.vue | 9 ++++--- .../shape-attr/LabelSelectorAntV.vue | 9 ++++--- .../components/shape-attr/TooltipSelector.vue | 7 ++--- .../shape-attr/TooltipSelectorAntV.vue | 7 ++--- frontend/src/views/chart/group/Group.vue | 7 +++-- frontend/src/views/chart/view/ChartEdit.vue | 4 ++- frontend/src/views/chart/view/ChartType.vue | 26 ++++++++++--------- frontend/src/views/dataset/data/ViewTable.vue | 7 ++--- frontend/src/views/dataset/group/Group.vue | 7 +++-- 26 files changed, 140 insertions(+), 99 deletions(-) create mode 100644 frontend/src/icons/svg/more_v.svg diff --git a/frontend/src/icons/svg/more_v.svg b/frontend/src/icons/svg/more_v.svg new file mode 100644 index 0000000000..68c0c57c70 --- /dev/null +++ b/frontend/src/icons/svg/more_v.svg @@ -0,0 +1 @@ + diff --git a/frontend/src/views/chart/chart/chart.js b/frontend/src/views/chart/chart/chart.js index 1e5aa69017..1d20681aab 100644 --- a/frontend/src/views/chart/chart/chart.js +++ b/frontend/src/views/chart/chart/chart.js @@ -853,3 +853,16 @@ export const BASE_MIX = { } ] } + +export const COLOR_PANEL = [ + '#ff4500', + '#ff8c00', + '#ffd700', + '#90ee90', + '#00ced1', + '#1e90ff', + '#c71585', + '#999999', + '#ffffff', + '#000000' +] diff --git a/frontend/src/views/chart/components/ChartComponentG2.vue b/frontend/src/views/chart/components/ChartComponentG2.vue index e56db9c78a..03b3fc9a27 100644 --- a/frontend/src/views/chart/components/ChartComponentG2.vue +++ b/frontend/src/views/chart/components/ChartComponentG2.vue @@ -145,8 +145,6 @@ export default { this.myChart = baseAreaOptionAntV(this.myChart, this.chartId, chart, this.antVAction) } else if (chart.type === 'scatter') { this.myChart = baseScatterOptionAntV(this.myChart, this.chartId, chart, this.antVAction) - } else if (chart.type === 'chart-mix') { - this.myChart = baseMixOptionAntV(this.myChart, this.chartId, chart, this.antVAction) } else if (chart.type === 'radar') { this.myChart = baseRadarOptionAntV(this.myChart, this.chartId, chart, this.antVAction) } else if (chart.type === 'gauge') { diff --git a/frontend/src/views/chart/components/component-style/BackgroundColorSelector.vue b/frontend/src/views/chart/components/component-style/BackgroundColorSelector.vue index 294b9c7629..3ee96ded4d 100644 --- a/frontend/src/views/chart/components/component-style/BackgroundColorSelector.vue +++ b/frontend/src/views/chart/components/component-style/BackgroundColorSelector.vue @@ -3,7 +3,7 @@ - + @@ -18,7 +18,7 @@