Skip to content

Commit

Permalink
refactor(editor): form-panel mounted事件参数
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed Jan 6, 2025
1 parent 8feac38 commit e57fc7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/editor/src/layouts/props-panel/PropsPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ const errorHandler = (e: any) => {
emit('form-error', e);
};
const mountedHandler = (e: InstanceType<typeof FormPanel>) => {
emit('mounted', e);
const mountedHandler = () => {
if (propertyFormPanelRef.value) {
emit('mounted', propertyFormPanelRef.value);
}
};
const propsPanelEl = useTemplateRef('propsPanel');
Expand Down

0 comments on commit e57fc7b

Please sign in to comment.