From 6df9b2398ff771eccc1a5eeddb7065044c40ecbc Mon Sep 17 00:00:00 2001 From: junjun Date: Tue, 15 Nov 2022 10:36:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=B8=80=E9=94=AE=E6=B8=85=E9=99=A4=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/view/ChartEdit.vue | 65 ++++++++++++++++++--- 1 file changed, 56 insertions(+), 9 deletions(-) diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 12c77740fc..4914074857 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -440,10 +440,14 @@ v-if="view.type === 'table-pivot'" class="padding-lr" > - + {{ $t('chart.table_pivot_row') }} / {{ $t('chart.dimension') }} + - + {{ $t('chart.drag_block_table_data_column') }} @@ -511,6 +515,10 @@ {{ $t('chart.dimension_or_quota') }} + - + {{ $t('chart.chart_group') }} + - + {{ $t('chart.drag_block_table_data_column') }} @@ -654,6 +666,10 @@ }} / {{ $t('chart.quota') }} + - + {{ $t('chart.drag_block_value_axis_ext') }} / {{ $t('chart.quota') }} + - + {{ $t('chart.stack_item') }} / {{ $t('chart.dimension') }} + - + {{ $t('chart.bubble_size') }} / {{ $t('chart.quota') }} @@ -801,6 +825,10 @@ style="cursor: pointer;color: #606266;" /> + { }) + }, + clearData(data) { + this.view[data] = [] + this.calcData(true) } } } @@ -3713,4 +3745,19 @@ span { font-weight: 400 !important; } +.data-area-label{ + text-align: left; + position: relative; + width: 100%; + display: inline-block; +} + +.data-area-clear{ + position: absolute; + top: 4px; + right: 6px; + color: rgb(135, 141, 159); + cursor: pointer; + z-index: 1; +}