diff --git a/packages/editor/src/layouts/props-panel/PropsPanel.vue b/packages/editor/src/layouts/props-panel/PropsPanel.vue index 20c6c5dd..9e09a9f5 100644 --- a/packages/editor/src/layouts/props-panel/PropsPanel.vue +++ b/packages/editor/src/layouts/props-panel/PropsPanel.vue @@ -148,8 +148,10 @@ const errorHandler = (e: any) => { emit('form-error', e); }; -const mountedHandler = (e: InstanceType) => { - emit('mounted', e); +const mountedHandler = () => { + if (propertyFormPanelRef.value) { + emit('mounted', propertyFormPanelRef.value); + } }; const propsPanelEl = useTemplateRef('propsPanel');