From d6afc50ac57347c252c62f33b815dfc005f14f9c Mon Sep 17 00:00:00 2001 From: lyx Date: Fri, 2 Jun 2023 17:29:18 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=E6=A0=87=E7=AD=BE=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=99=A8=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=80=BC=E9=80=89?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Informations/Inputs/InputsTab/config.vue | 5 ++++- .../components/Informations/Inputs/InputsTab/index.vue | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/packages/components/Informations/Inputs/InputsTab/config.vue b/src/packages/components/Informations/Inputs/InputsTab/config.vue index 39d9cad5..c6e8c7c9 100644 --- a/src/packages/components/Informations/Inputs/InputsTab/config.vue +++ b/src/packages/components/Informations/Inputs/InputsTab/config.vue @@ -1,8 +1,11 @@ diff --git a/src/packages/components/Informations/Inputs/InputsTab/index.vue b/src/packages/components/Informations/Inputs/InputsTab/index.vue index d75bde97..90107ee0 100644 --- a/src/packages/components/Informations/Inputs/InputsTab/index.vue +++ b/src/packages/components/Informations/Inputs/InputsTab/index.vue @@ -1,5 +1,5 @@ @@ -12,6 +12,7 @@ import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore import { useChartInteract } from '@/hooks' import { InteractEventOn } from '@/enums/eventEnum' import { ComponentInteractParamsEnum } from './interact' +import { changeURLStatic } from '@/utils/changeURLParam' const props = defineProps({ chartConfig: { @@ -29,6 +30,9 @@ const option = shallowReactive({ const onChange = (v: string) => { if (v === undefined) return const selectItem = option.value.dataset.find((item: { label: string; value: any }) => item.label === v) + const { chartConfig } = props + const key = chartConfig.chartConfig.title || chartConfig.id; + changeURLStatic(key, selectItem.value) // 存储到联动数据 useChartInteract( props.chartConfig, From 18e0729e54d2b8227717a503f35bf99782143cc1 Mon Sep 17 00:00:00 2001 From: lyx Date: Mon, 5 Jun 2023 18:06:57 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=E6=A0=87=E7=AD=BE=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=99=A8=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E7=9A=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Informations/Inputs/InputsTab/index.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/packages/components/Informations/Inputs/InputsTab/index.vue b/src/packages/components/Informations/Inputs/InputsTab/index.vue index 90107ee0..a02900b9 100644 --- a/src/packages/components/Informations/Inputs/InputsTab/index.vue +++ b/src/packages/components/Informations/Inputs/InputsTab/index.vue @@ -12,7 +12,6 @@ import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore import { useChartInteract } from '@/hooks' import { InteractEventOn } from '@/enums/eventEnum' import { ComponentInteractParamsEnum } from './interact' -import { changeURLStatic } from '@/utils/changeURLParam' const props = defineProps({ chartConfig: { @@ -30,9 +29,6 @@ const option = shallowReactive({ const onChange = (v: string) => { if (v === undefined) return const selectItem = option.value.dataset.find((item: { label: string; value: any }) => item.label === v) - const { chartConfig } = props - const key = chartConfig.chartConfig.title || chartConfig.id; - changeURLStatic(key, selectItem.value) // 存储到联动数据 useChartInteract( props.chartConfig,