From 95ca4029a64b666d1e5a735fb3168856cb0e205c Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 26 Nov 2026 15:47:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Textbox=20=E4=B8=8D=E8=AF=86=E5=88=AB=20?= =?UTF-8?q?typer=20props?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages-user/client-base/src/components/textbox.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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);