feat:新增图表

This commit is contained in:
mtruning
2022-01-15 21:54:04 +08:00
parent cb7a8298ec
commit 9f2ebba293
30 changed files with 234 additions and 29 deletions
+10 -4
View File
@@ -6,16 +6,22 @@ export type ConfigType = {
title: string
category: string
node: Component
image: string | (() => Promise<typeof import("*.png")>),
image: string | (() => Promise<typeof import('*.png')>)
[T: string]: unknown
}
export enum PackagesCategoryEnum {
CHARTS = 'CHARTS',
TABLES = 'TABLES',
INFORMATION = 'INFORMATION',
DECORATES = 'DECORATES'
DECORATES = 'DECORATES',
}
export enum PackagesCategoryName {
CHARTS = '图表',
TABLES = '表格',
INFORMATION = '信息',
DECORATES = '小组件',
}
export type PackagesType = {
@@ -23,4 +29,4 @@ export type PackagesType = {
[PackagesCategoryEnum.INFORMATION]: ConfigType[]
[PackagesCategoryEnum.TABLES]: ConfigType[]
[PackagesCategoryEnum.DECORATES]: ConfigType[]
}
}