fix: 新增图表居中拖拽

This commit is contained in:
MTrun
2022-01-27 23:16:51 +08:00
parent e8999a7fdf
commit dc7db58a8e
9 changed files with 83 additions and 34 deletions
+8 -2
View File
@@ -7,6 +7,12 @@ export type ConfigType = {
category: string
categoryName: string
package: string
chartData: {
chartSize: {
w: number
h: number
}
}
node: Component
image: string | (() => Promise<typeof import('*.png')>)
[T: string]: unknown
@@ -16,14 +22,14 @@ export enum PackagesCategoryEnum {
CHARTS = 'Charts',
TABLES = 'Tables',
INFORMATION = 'Informations',
DECORATES = 'Decorates',
DECORATES = 'Decorates'
}
export enum PackagesCategoryName {
CHARTS = '图表',
TABLES = '表格',
INFORMATION = '信息',
DECORATES = '小组件',
DECORATES = '小组件'
}
export type PackagesType = {