feat: 新增拖拽功能

This commit is contained in:
MTrun
2022-01-30 14:20:28 +08:00
parent 1749680268
commit ae78ced3dd
5 changed files with 85 additions and 26 deletions
+1
View File
@@ -16,6 +16,7 @@ export type ConfigType = {
export interface CreateComponentType {
id: string
key: string
attr: { x: number; y: number; w: number; h: number }
chartData: ConfigType
config: object
setPosition: Function