From c1ca2c6c3c007afc501045df14fe08ffa2b2d688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=9B=E7=9A=93?= Date: Thu, 26 Nov 2020 16:25:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=A0=B9=E8=8A=82=E7=82=B9=E6=97=B6,=20?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E7=82=B9=E5=87=BB=E7=BB=84=E4=BB=B6=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E6=8F=92=E5=85=A5=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/designer/src/document/node/node.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/designer/src/document/node/node.ts b/packages/designer/src/document/node/node.ts index a2deabff7..ab9ee9422 100644 --- a/packages/designer/src/document/node/node.ts +++ b/packages/designer/src/document/node/node.ts @@ -910,7 +910,8 @@ export class Node { if (dropElement) { return { container: dropElement, ref }; } - return { container: this, ref }; + // 假如最后找不到合适位置,返回 undefined 阻止继续插入节点 + return undefined; } const canDropIn = this.componentMeta?.prototype?.options?.canDropIn;