解决Vue 3版打包后无法访问已全局注册的组件的问题。

This commit is contained in:
vdpAdmin
2022-01-19 15:09:30 +08:00
parent 273dc7ad20
commit 45e44850e9

View File

@ -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) {