chore: ts修改

This commit is contained in:
yangmi 2022-07-22 10:28:23 +08:00
parent 856ea6e554
commit d8de27f73c
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
import { OptionsType } from '@/packages/index.d';
import { mapToOptions } from '@/utils'; import { mapToOptions } from '@/utils';
export enum TextCommonEventEnum { export enum TextCommonEventEnum {
@ -6,7 +7,7 @@ export enum TextCommonEventEnum {
export const eventList = mapToOptions(new Map([ export const eventList = mapToOptions(new Map([
[TextCommonEventEnum.TEST, '测试内置方法'], [TextCommonEventEnum.TEST, '测试内置方法'],
])) ])) as Array<OptionsType>
export const TextConfig = { export const TextConfig = {
key: 'TextCommon', key: 'TextCommon',

View File

@ -31,7 +31,7 @@ export const loadSkeletonAsyncComponent = (loader: AsyncComponentLoader<any>) =>
}) })
export const getComponentConfig = (options: Omit<ConfigType, 'chartKey' | 'conKey' | 'id'>): Partial<ConfigType> => { export const getComponentConfig = (options: Omit<ConfigType, 'chartKey' | 'conKey' | 'id'>): ConfigType => {
return { return {
...options, ...options,
chartKey: `V${options.key}`, chartKey: `V${options.key}`,