From 182ca05bfcaab8ced74c98b6e043963c6f1a9f55 Mon Sep 17 00:00:00 2001 From: wisonic Date: Wed, 10 Jun 2026 18:21:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E6=8F=92=E4=BB=B6=E6=8B=96=E6=8B=BD=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/custom-component/component-list.ts | 4 ++-- core/core-frontend/src/utils/canvasUtils.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/custom-component/component-list.ts b/core/core-frontend/src/custom-component/component-list.ts index 637af13618..1b7393b4b9 100644 --- a/core/core-frontend/src/custom-component/component-list.ts +++ b/core/core-frontend/src/custom-component/component-list.ts @@ -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 diff --git a/core/core-frontend/src/utils/canvasUtils.ts b/core/core-frontend/src/utils/canvasUtils.ts index c17eb0d09b..4a43b8133e 100644 --- a/core/core-frontend/src/utils/canvasUtils.ts +++ b/core/core-frontend/src/utils/canvasUtils.ts @@ -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