fix: 修改全局配置展示

This commit is contained in:
MTrun
2022-02-08 19:39:57 +08:00
parent b258b0f651
commit 62f8e389a8
15 changed files with 108 additions and 44 deletions
+8
View File
@@ -0,0 +1,8 @@
/**
* * ECharts option 统一前置处理
* @param option
*/
export const echartOptionProfixHandle = (option: any) => {
option['backgroundColor'] = 'rgba(0,0,0,0)'
return option
}
+2
View File
@@ -0,0 +1,2 @@
export * from '@/packages/public/chart'
export * from '@/packages/public/publicConfig'
+15
View File
@@ -0,0 +1,15 @@
import { getUUID } from '@/utils'
import { PublicConfigType } from '@/packages/index.d'
export class publicConfig implements PublicConfigType {
public id = getUUID()
// 重命名
public rename = undefined
// 基本信息
public attr = { x: 0, y: 0, w: 500, h: 300, zIndex: -1 }
// 设置坐标
public setPosition(x: number, y: number): void {
this.attr.x = x
this.attr.y = y
}
}