From 5056626ef4738ea11a144356a5a28b907a287946 Mon Sep 17 00:00:00 2001 From: wibetter <365533093@qq.com> Date: Fri, 3 Mar 2023 16:53:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(amis-saas-9318):=20=E5=8D=87=E7=BA=A7amis?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id01b0653ffcea5a7b56b6af5382078fc54013c06 --- packages/amis-editor-core/src/store/editor.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/amis-editor-core/src/store/editor.ts b/packages/amis-editor-core/src/store/editor.ts index 4167c5b88..ec1ee5934 100644 --- a/packages/amis-editor-core/src/store/editor.ts +++ b/packages/amis-editor-core/src/store/editor.ts @@ -240,6 +240,11 @@ export const MainStore = types return false; }, + getRootId() { + const curSchema = this.getSchema(); + return curSchema?.$$id; + }, + isHoved(id: string) { return id && self.hoverId === id; },