mirror of
https://gitee.com/dromara/go-view.git
synced 2025-10-16 15:22:07 +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';
|
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',
|
||||||
|
@ -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}`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user