feat: 新增撤回前进功能

This commit is contained in:
MTrun
2022-02-04 18:28:02 +08:00
parent 5e2f0ab6df
commit 27f416a46e
13 changed files with 198 additions and 70 deletions
+3 -3
View File
@@ -1,15 +1,15 @@
import { getUUID } from '@/utils'
import { PublicConfigType } from '@/packages/index.d'
export class publicConfig implements PublicConfigType{
export class publicConfig implements PublicConfigType {
public id = getUUID()
// 重命名
public rename = undefined
// 基本信息
public attr = { x: 0, y: 0, w: 500, h: 300, zIndex: 0 }
public attr = { x: 0, y: 0, w: 500, h: 300, zIndex: -1 }
// 设置坐标
public setPosition(x: number, y: number): void {
this.attr.x = x
this.attr.y = y
}
}
}