diff --git a/src/packages/components/Informations/Texts/TextCommon/enum.ts b/src/packages/components/Informations/Texts/TextCommon/enum.ts index 9cea3fed..f0a8c4d0 100644 --- a/src/packages/components/Informations/Texts/TextCommon/enum.ts +++ b/src/packages/components/Informations/Texts/TextCommon/enum.ts @@ -1,3 +1,4 @@ +import { OptionsType } from '@/packages/index.d'; import { mapToOptions } from '@/utils'; export enum TextCommonEventEnum { @@ -6,7 +7,7 @@ export enum TextCommonEventEnum { export const eventList = mapToOptions(new Map([ [TextCommonEventEnum.TEST, '测试内置方法'], -])) +])) as Array export const TextConfig = { key: 'TextCommon', diff --git a/src/utils/componets.ts b/src/utils/componets.ts index 15e2e9eb..e08151a0 100644 --- a/src/utils/componets.ts +++ b/src/utils/componets.ts @@ -31,7 +31,7 @@ export const loadSkeletonAsyncComponent = (loader: AsyncComponentLoader) => }) -export const getComponentConfig = (options: Omit): Partial => { +export const getComponentConfig = (options: Omit): ConfigType => { return { ...options, chartKey: `V${options.key}`,