mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 新增导入导出功能😍
This commit is contained in:
@@ -22,12 +22,12 @@ export let packagesList: PackagesType = {
|
||||
}
|
||||
|
||||
/**
|
||||
* * 获取目标拖拽组件配置信息
|
||||
* @param dropData
|
||||
* * 获取目标组件配置信息
|
||||
* @param targetData
|
||||
*/
|
||||
export const createComponent = async (dropData: ConfigType) => {
|
||||
const { category, key } = dropData
|
||||
const chart = await import(`./components/${dropData.package}/${category}/${key}/config.ts`)
|
||||
export const createComponent = async (targetData: ConfigType) => {
|
||||
const { category, key } = targetData
|
||||
const chart = await import(`./components/${targetData.package}/${category}/${key}/config.ts`)
|
||||
return new chart.default()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user