From 86d679cf25631bd1abd56d4f971e6db3a9b9d6d5 Mon Sep 17 00:00:00 2001 From: Sun Date: Tue, 10 Feb 2026 10:22:25 +0800 Subject: [PATCH] fix(@vben/plugins): Fixed the misspelling of the data update method name in the echarts hook Correct updateDate to updateData, ensuring that the API method name is correct and consistent --- packages/effects/plugins/src/echarts/use-echarts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/effects/plugins/src/echarts/use-echarts.ts b/packages/effects/plugins/src/echarts/use-echarts.ts index 92aea5f3b..dc74fd46d 100644 --- a/packages/effects/plugins/src/echarts/use-echarts.ts +++ b/packages/effects/plugins/src/echarts/use-echarts.ts @@ -105,7 +105,7 @@ function useEcharts(chartRef: Ref) { }); }; - const updateDate = ( + const updateData = ( option: EChartsOption, notMerge = false, // false = 合并(保留动画),true = 完全替换 lazyUpdate = false, // true 时不立即重绘,适合短时间内多次调用 @@ -170,7 +170,7 @@ function useEcharts(chartRef: Ref) { return { renderEcharts, resize, - updateDate, + updateData, getChartInstance: () => chartInstance, }; }