feat: 添加组件分类标识
This commit is contained in:
parent
84361cb5f5
commit
f13b3ca630
7
src/packages/index.d.ts
vendored
7
src/packages/index.d.ts
vendored
@ -1,6 +1,12 @@
|
|||||||
import type { GlobalThemeJsonType } from '@/settings/chartThemes/index'
|
import type { GlobalThemeJsonType } from '@/settings/chartThemes/index'
|
||||||
import type { RequestConfigType } from '@/store/modules/chartEditStore/chartEditStore.d'
|
import type { RequestConfigType } from '@/store/modules/chartEditStore/chartEditStore.d'
|
||||||
|
|
||||||
|
export enum ChartFrameEnum {
|
||||||
|
COMMON = 'common',
|
||||||
|
ECHARTS = 'echarts',
|
||||||
|
NAIVE_UI = 'naiveUI'
|
||||||
|
}
|
||||||
|
|
||||||
// 组件配置
|
// 组件配置
|
||||||
export type ConfigType = {
|
export type ConfigType = {
|
||||||
key: string
|
key: string
|
||||||
@ -10,6 +16,7 @@ export type ConfigType = {
|
|||||||
category: string
|
category: string
|
||||||
categoryName: string
|
categoryName: string
|
||||||
package: string
|
package: string
|
||||||
|
chartFrame?: ChartFrameEnum
|
||||||
image: string | (() => Promise<typeof import('*.png')>)
|
image: string | (() => Promise<typeof import('*.png')>)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user