fix: 新增组件拖拽

This commit is contained in:
MTrun
2022-01-25 18:19:44 +08:00
parent bbeba4a8d8
commit 7a3af81d7a
9 changed files with 343 additions and 241 deletions
@@ -1,11 +1,19 @@
import { getUUID } from '@/utils'
import { BarCommonConfig } from './index'
export default class Config {
name: string = 'BarCommon'
id: string = getUUID()
attr = { w: 500, h: 300 }
// 图表的
key: string = BarCommonConfig.key
attr = { x: 0, y: 0, w: 500, h: 300 }
// 图表配置项
public config = {
global: {}
}
// 设置坐标
setPosition(x: number, y: number) {
this.attr.x = x
this.attr.y = y
}
}