config.ts
1021 Bytes
import {PublicConfigClass} from '@/packages/public'
import {CreateComponentType} from '@/packages/index.d'
import {chartInitConfig} from '@/settings/designSetting'
import {OverrideILoadConfigurationframeConfig} from './index'
import cloneDeep from 'lodash/cloneDeep'
import { Platform } from './help'
export const enum shareEnum {
PRIVATE_VIEW = "PRIVATE_VIEW",
PUBLIC_VIEW = 'PUBLIC_VIEW'
}
export const option = {
// 网站路径
dataset: '',
organizationId: '',
platform: Platform.PC,
publicId: '' as (undefined | string),
// 圆角
borderRadius: 10,
pages: {
page: 1,
pageSize: 10
},
color: 'black',
isShare: false,
}
export default class Config extends PublicConfigClass implements CreateComponentType {
public key = OverrideILoadConfigurationframeConfig.key
public attr = {...chartInitConfig, w: 1200, h: 800, zIndex: -1}
public chartConfig = cloneDeep(OverrideILoadConfigurationframeConfig)
public option = cloneDeep(option)
}