From 45e44850e9d4948d5fdef9b4ec5cd25de437534b Mon Sep 17 00:00:00 2001 From: vdpAdmin Date: Wed, 19 Jan 2022 15:09:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3Vue=203=E7=89=88=E6=89=93?= =?UTF-8?q?=E5=8C=85=E5=90=8E=E6=97=A0=E6=B3=95=E8=AE=BF=E9=97=AE=E5=B7=B2?= =?UTF-8?q?=E5=85=A8=E5=B1=80=E6=B3=A8=E5=86=8C=E7=9A=84=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/form-designer/setting-panel/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/form-designer/setting-panel/index.vue b/src/components/form-designer/setting-panel/index.vue index 4c002d2..4b84e5d 100644 --- a/src/components/form-designer/setting-panel/index.vue +++ b/src/components/form-designer/setting-panel/index.vue @@ -238,7 +238,8 @@ return ownPropEditorName } - return !!this.$root.$options.components[ownPropEditorName] ? ownPropEditorName : editorName //全局注册的属性编辑器组件 + //return !!this.$root.$options.components[ownPropEditorName] ? ownPropEditorName : editorName //Vue2全局注册的属性编辑器组件 + return !!this.$root.$.appContext.components[ownPropEditorName] ? ownPropEditorName : editorName //Vue3全局注册的属性编辑器组件 }, showCollapse(propsObj) {