diff --git a/packages/editor/src/layouts/PropsPanel.vue b/packages/editor/src/layouts/PropsPanel.vue index aa468c50..43f6d1b4 100644 --- a/packages/editor/src/layouts/PropsPanel.vue +++ b/packages/editor/src/layouts/PropsPanel.vue @@ -1,15 +1,16 @@ @@ -17,7 +18,8 @@ import { computed, getCurrentInstance, inject, onMounted, ref, watchEffect } from 'vue'; import { tMagicMessage } from '@tmagic/design'; -import type { FormValue, MForm } from '@tmagic/form'; +import type { FormValue } from '@tmagic/form'; +import { MForm } from '@tmagic/form'; import type { MNode } from '@tmagic/schema'; import type StageCore from '@tmagic/stage'; @@ -32,7 +34,9 @@ const configForm = ref>(); const curFormConfig = ref([]); const services = inject('services'); const node = computed(() => services?.editorService.get('node')); -const propsPanelSize = computed(() => services?.uiService.get('propsPanelSize') || 'small'); +const propsPanelSize = computed( + () => services?.uiService.get<'large' | 'default' | 'small'>('propsPanelSize') || 'small', +); const stage = computed(() => services?.editorService.get('stage')); const init = async () => {