From 8d4b0a67ccc7ccd7cef334b65528a00f886a8ae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=2EKing-=E7=8E=8B=E5=87=AF=E5=A3=AE?= Date: Mon, 15 Apr 2024 11:59:26 +0800 Subject: [PATCH] =?UTF-8?q?FDL-10490=20fix:demo=E5=B9=B3=E5=8F=B0=E6=9D=83?= =?UTF-8?q?=E9=99=90=E7=AE=A1=E7=90=86api=E5=88=97=E8=A1=A8=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=A9=BA=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/base/tree/customtree.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/fineui/src/base/tree/customtree.js b/packages/fineui/src/base/tree/customtree.js index 349ae0912..eb774edfc 100644 --- a/packages/fineui/src/base/tree/customtree.js +++ b/packages/fineui/src/base/tree/customtree.js @@ -16,7 +16,8 @@ import { isNull, createWidget, Controller, - Events + Events, + omit, } from "@/core"; /** @@ -104,7 +105,7 @@ export class CustomTree extends Widget { return itemsCreator.apply(this, args); }; - isNull(item.popup.el) && (item.popup.el = deepClone(this.options.el)); + isNull(item.popup.el) && (item.popup.el = deepClone(omit(this.options.el, "node"))); item.popup.el.node = item.el; items.push(item); } else {