From 68955f8f320c952d3e3eca68ba502512da015f2f Mon Sep 17 00:00:00 2001 From: Ming <1823574190@qq.com> Date: Sat, 9 Nov 2024 01:34:01 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Atable=E7=BB=84=E4=BB=B6=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=8F=91=E8=B5=B7api=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Tables/Tables/TablesBasic/index.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/packages/components/Tables/Tables/TablesBasic/index.vue b/src/packages/components/Tables/Tables/TablesBasic/index.vue index f3580744..02c9523f 100644 --- a/src/packages/components/Tables/Tables/TablesBasic/index.vue +++ b/src/packages/components/Tables/Tables/TablesBasic/index.vue @@ -36,6 +36,8 @@ import { computed, PropType, toRefs, watch, reactive, ref } from 'vue' import { CreateComponentType } from '@/packages/index.d' import { icon } from '@/plugins' +import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore' +import { useChartDataFetch } from '@/hooks' const props = defineProps({ chartConfig: { @@ -83,6 +85,13 @@ watch( deep: true } ) + +// setdata 数据监听与更改 +useChartDataFetch(props.chartConfig, useChartEditStore, (newData: any) => { + props.chartConfig.option.dataset = newData +}) + +