fix: 新增选择联动

This commit is contained in:
MTrun
2022-01-29 23:58:56 +08:00
parent ab8c84e1b9
commit 379a6d259f
6 changed files with 109 additions and 10 deletions
@@ -60,10 +60,11 @@ export const useChartEditStoreStore = defineStore({
setEditCanvasItem< T extends keyof EditCanvasType, K extends EditCanvasType[T] >(key: T, value: K) {
this.editCanvas[key] = value
},
// * 设置目标数据
// * 设置目标数据 hover
setTargetHoverChart(hoverIndex?:TargetChartType["hoverIndex"]) {
this.targetChart.hoverIndex = hoverIndex
},
// * 设置目标数据 select
setTargetSelectChart(selectIndex?:TargetChartType["selectIndex"]) {
this.targetChart.selectIndex = selectIndex
},