feat: 新增图表位置处理

This commit is contained in:
MTrun
2022-02-25 21:26:56 +08:00
parent 8e9905816e
commit 6678b2858d
11 changed files with 310 additions and 272 deletions
+3
View File
@@ -25,6 +25,9 @@ export interface CreateComponentType extends PublicConfigType {
option: GlobalThemeJsonType
}
// 获取组件实例类中某个key对应value类型的方法
export type PickCreateComponentType<T extends keyof CreateComponentType> = Pick<CreateComponentType, T>[T]
// 包分类枚举
export enum PackagesCategoryEnum {
CHARTS = 'Charts',
-1
View File
@@ -32,7 +32,6 @@ const packagesInstall = (app: App): void => {
* @param dropData
*/
const createComponent = async (dropData: ConfigType) => {
console.log(dropData)
const { category } = dropData
const key = dropData.key.substring(1)
const chart = await import(`./components/${dropData.package}/${category}/${key}/config.ts`)