mirror of
https://github.com/dataease/dataease.git
synced 2026-06-12 16:31:11 +08:00
fix(图表): 修复图表插件拖拽添加异常
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user