diff --git a/packages-user/client-base/src/components/textbox.tsx b/packages-user/client-base/src/components/textbox.tsx index ed8d836..7f6affd 100644 --- a/packages-user/client-base/src/components/textbox.tsx +++ b/packages-user/client-base/src/components/textbox.tsx @@ -86,7 +86,8 @@ const textContentOptions = { 'width', 'height', 'autoHeight', - 'materials' + 'materials', + 'typer' ], emits: ['typeEnd', 'typeStart', 'updateHeight'] } satisfies SetupComponentOptions< @@ -100,7 +101,10 @@ export const TextContent = defineComponent< TextContentEmits, keyof TextContentEmits >((props, { emit, expose }) => { - const defaultMaterials = inject('@default/materials'); + const defaultMaterials = inject( + '@default/materials', + null + ); /** 使用的贴图管理器 */ const materials = computed(() => props.materials ?? defaultMaterials);