feat: 新增剪切

This commit is contained in:
MTrun
2022-02-04 12:17:50 +08:00
parent ad8cc8a003
commit 71e13c83e6
11 changed files with 224 additions and 45 deletions
+6 -4
View File
@@ -13,14 +13,16 @@ export type ConfigType = {
}
// 组件实例类
export interface CreateComponentType {
export interface PublicConfigType {
id: string
key: string
rename?: string
attr: { x: number; y: number; w: number; h: number }
attr: { x: number; y: number; w: number; h: number; zIndex: number }
setPosition: Function
}
export interface CreateComponentType extends PublicConfigType {
key: string
chartData: ConfigType
option: object
setPosition: Function
}
// 包分类枚举