mirror of
https://gitee.com/dromara/go-view.git
synced 2025-10-15 23:06:33 +08:00
chore: ts修改
This commit is contained in:
parent
856ea6e554
commit
d8de27f73c
@ -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<OptionsType>
|
||||
|
||||
export const TextConfig = {
|
||||
key: 'TextCommon',
|
||||
|
@ -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 {
|
||||
...options,
|
||||
chartKey: `V${options.key}`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user