mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-25 19:06:35 +08:00
fix: 修改注释
This commit is contained in:
parent
de1652973c
commit
23f09d33a2
@ -14,7 +14,7 @@ import {
|
|||||||
export const useChartHistoryStoreStore = defineStore({
|
export const useChartHistoryStoreStore = defineStore({
|
||||||
id: 'useChartHistoryStore',
|
id: 'useChartHistoryStore',
|
||||||
state: (): ChartHistoryStoreType => ({
|
state: (): ChartHistoryStoreType => ({
|
||||||
// 后退栈(记录栈)
|
// 后退栈
|
||||||
backStack: [],
|
backStack: [],
|
||||||
// 前进栈
|
// 前进栈
|
||||||
forwardStack: []
|
forwardStack: []
|
||||||
@ -55,7 +55,7 @@ export const useChartHistoryStoreStore = defineStore({
|
|||||||
HistoryTargetTypeEnum.CANVAS
|
HistoryTargetTypeEnum.CANVAS
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
// * 推入记录栈
|
// * 推入后退栈
|
||||||
pushBackStackItem(
|
pushBackStackItem(
|
||||||
item: HistoryItemType | Array<HistoryItemType>,
|
item: HistoryItemType | Array<HistoryItemType>,
|
||||||
notClear = false
|
notClear = false
|
||||||
@ -73,7 +73,7 @@ export const useChartHistoryStoreStore = defineStore({
|
|||||||
this.forwardStack = [...this.forwardStack, ...item]
|
this.forwardStack = [...this.forwardStack, ...item]
|
||||||
else this.forwardStack.push(item)
|
else this.forwardStack.push(item)
|
||||||
},
|
},
|
||||||
// * 移出记录栈
|
// * 移出后退栈
|
||||||
popBackStackItem(
|
popBackStackItem(
|
||||||
index?: number
|
index?: number
|
||||||
): HistoryItemType[] | HistoryItemType | undefined {
|
): HistoryItemType[] | HistoryItemType | undefined {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user