fix: 修改引入方式,去除config文件上的node指向

This commit is contained in:
MTrun
2022-03-10 14:12:26 +08:00
parent b71b7bfd0e
commit 790cc7b878
18 changed files with 37 additions and 69 deletions
@@ -30,9 +30,10 @@ export const handleDrag = async (e: DragEvent) => {
// 设置拖拽状态
chartEditStore.setEditCanvas(EditCanvasTypeEnum.IS_CREATE, false)
const dropData: Exclude<ConfigType, ['node', 'image']> = JSON.parse(
const dropData: Exclude<ConfigType, ['image']> = JSON.parse(
drayDataString
)
// 创建新图表组件
let newComponent: CreateComponentType = await createComponent(dropData)
+1 -1
View File
@@ -28,7 +28,7 @@
>
<component
class="edit-content-chart"
:is="item.key"
:is="item.chartConfig.chartKey"
:chartConfig="item"
:themeSetting="themeSetting"
:themeColor="themeColor"