feat: 新增组件预览

This commit is contained in:
MTrun
2022-03-07 12:33:05 +08:00
parent fb89f9b85b
commit b0f5fd826c
32 changed files with 102 additions and 93 deletions
+3 -2
View File
@@ -4,11 +4,12 @@ import { GlobalThemeJsonType } from '@/settings/chartThemes/index'
// 组件配置
export type ConfigType = {
key: string
conKey: string,
title: string
category: string
categoryName: string
package: string
node: Component
node: () => Component
conNode: () => Component
image: string | (() => Promise<typeof import('*.png')>)
}
@@ -22,7 +23,7 @@ export interface PublicConfigType {
}
export interface CreateComponentType extends PublicConfigType {
key: string
chartConfig: Omit<ConfigType, 'node'>
chartConfig: Omit<ConfigType, 'node' | 'conNode'>
option: GlobalThemeJsonType
}