Skip to content

Commit 7d04b60

Browse files
authored
fix: correct updateDate to updateData in the echarts hook (#7538)
* 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 * Revert "fix(@vben/plugins): Fixed the misspelling of the data update method name in the echarts hook" This reverts commit 86d679c. * 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
1 parent 8a215fb commit 7d04b60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/effects/plugins/src/echarts/use-echarts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function useEcharts(chartRef: Ref<EchartsUIType>) {
105105
});
106106
};
107107

108-
const updateDate = (
108+
const updateData = (
109109
option: EChartsOption,
110110
notMerge = false, // false = 合并(保留动画),true = 完全替换
111111
lazyUpdate = false, // true 时不立即重绘,适合短时间内多次调用
@@ -170,7 +170,7 @@ function useEcharts(chartRef: Ref<EchartsUIType>) {
170170
return {
171171
renderEcharts,
172172
resize,
173-
updateDate,
173+
updateData,
174174
getChartInstance: () => chartInstance,
175175
};
176176
}

0 commit comments

Comments
 (0)