mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-08 07:31:09 +08:00
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 86d679cf25631bd1abd56d4f971e6db3a9b9d6d5. * 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
This commit is contained in:
@@ -105,7 +105,7 @@ function useEcharts(chartRef: Ref<EchartsUIType>) {
|
||||
});
|
||||
};
|
||||
|
||||
const updateDate = (
|
||||
const updateData = (
|
||||
option: EChartsOption,
|
||||
notMerge = false, // false = 合并(保留动画),true = 完全替换
|
||||
lazyUpdate = false, // true 时不立即重绘,适合短时间内多次调用
|
||||
@@ -170,7 +170,7 @@ function useEcharts(chartRef: Ref<EchartsUIType>) {
|
||||
return {
|
||||
renderEcharts,
|
||||
resize,
|
||||
updateDate,
|
||||
updateData,
|
||||
getChartInstance: () => chartInstance,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user