mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 新增组件拖拽
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user