config.ts
898 Bytes
import cloneDeep from 'lodash-es/cloneDeep';
import { MapComponentTrackRealConfig } from '.';
import {
ConfigType,
CreateComponentType,
PublicComponentOptions,
PublicPresetOptions,
} from '/@/views/visual/packages/index.type';
import { PublicConfigClass, componentInitConfig } from '/@/views/visual/packages/publicConfig';
export const option: PublicPresetOptions = {
componetDesign: false,
multipleDataSourceComponent: true,
};
export default class Config extends PublicConfigClass implements CreateComponentType {
public key: string = MapComponentTrackRealConfig.key;
public attr = { ...componentInitConfig };
public componentConfig: ConfigType = cloneDeep(MapComponentTrackRealConfig);
public persetOption = cloneDeep(option);
public option: PublicComponentOptions;
constructor(option: PublicComponentOptions) {
super();
this.option = { ...option };
}
}