From ddd9ec659a29fa0a75b523d3e5a56e93d68037a2 Mon Sep 17 00:00:00 2001 From: wisonic Date: Wed, 9 Apr 2025 20:52:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E5=9B=BE?= =?UTF-8?q?=E4=BE=8B=E8=87=AA=E5=AE=9A=E4=B9=89=E6=8E=92=E5=BA=8F=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E6=A1=86=E5=88=87=E6=8D=A2=E5=9B=BE=E8=A1=A8=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=94=B6=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editor/editor-style/components/LegendSelector.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue index 189b65e529..c4a0c9e5be 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LegendSelector.vue @@ -5,7 +5,7 @@ import icon_rightAlign_outlined from '@/assets/svg/icon_right-align_outlined.svg import icon_topAlign_outlined from '@/assets/svg/icon_top-align_outlined.svg' import icon_verticalAlign_outlined from '@/assets/svg/icon_vertical-align_outlined.svg' import icon_bottomAlign_outlined from '@/assets/svg/icon_bottom-align_outlined.svg' -import { computed, onMounted, reactive, watch } from 'vue' +import { computed, onMounted, reactive, watch, ref } from 'vue' import { useI18n } from '@/hooks/web/useI18n' import { COLOR_PANEL, @@ -102,7 +102,9 @@ const changeMisc = prop => { emit('onMiscChange', { data: state.legendForm.miscForm, requestData: true }, prop) } +const legendSort = ref() const init = () => { + legendSort.value?.blur() const chart = JSON.parse(JSON.stringify(props.chart)) if (chart.customStyle) { let customStyle = null @@ -716,6 +718,7 @@ onMounted(() => { size="small" :effect="themes" :disabled="!chart.xAxisExt?.length" + ref="legendSort" @change="changeLegendSort" >