添加撤回逻辑
This commit is contained in:
@@ -1,33 +1,27 @@
|
||||
|
||||
|
||||
import { DataCandy } from "../types/global"
|
||||
import { StorageManager } from "./StorageManager"
|
||||
|
||||
|
||||
export class DOCandy {
|
||||
|
||||
private data: DataCandy
|
||||
private show: number
|
||||
|
||||
constructor(dataCandy: DataCandy, show: number) {
|
||||
this.data = dataCandy
|
||||
this.show = show
|
||||
}
|
||||
private left: number
|
||||
|
||||
//====================================持久化数据
|
||||
public get_left(): number {
|
||||
return this.data.left
|
||||
constructor(show: number, left: number) {
|
||||
this.show = show
|
||||
this.left = left
|
||||
}
|
||||
public set_left(left: number): void {
|
||||
this.data.left = left
|
||||
StorageManager.getInstance().onChanged()
|
||||
}
|
||||
//====================================持久化数据
|
||||
|
||||
public get_show(): number {
|
||||
return this.show
|
||||
}
|
||||
|
||||
public get_left(): number {
|
||||
return this.left
|
||||
}
|
||||
public set_left(left: number): void {
|
||||
this.left = left
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user