fix(图表): 修复图表插件拖拽添加异常

This commit is contained in:
wisonic
2026-06-10 18:21:36 +08:00
committed by wisonic-s
parent df7069c903
commit 182ca05bfc
2 changed files with 4 additions and 4 deletions

View File

@@ -712,9 +712,9 @@ export function findNewComponentFromList(
newComponent.name = viewConfig?.title
newComponent.label = viewConfig?.title
newComponent.render = viewConfig?.render
newComponent.isPlugin = !!isPlugin
newComponent.isPlugin = !!isPlugin || !!viewConfig?.isPlugin
if (isPlugin) {
newComponent.staticMap = staticMap
newComponent.staticMap = staticMap || viewConfig?.staticMap
}
}
return newComponent

View File

@@ -114,9 +114,9 @@ export function findNewComponent(componentName, innerType, staticMap?) {
newComponent.name = viewConfig?.title
newComponent.label = viewConfig?.title
newComponent.render = viewConfig?.render
newComponent.isPlugin = !!staticMap
newComponent.isPlugin = !!staticMap || !!viewConfig?.isPlugin
if (newComponent.isPlugin) {
newComponent.staticMap = staticMap
newComponent.staticMap = staticMap || viewConfig?.staticMap
}
} else if (['DeDecoration', 'DynamicBackground'].includes(componentName)) {
newComponent.style.borderWidth = 0