[TS] Type component ref for 3D components (#3127)

This commit is contained in:
Chenlei Hu
2025-03-18 16:38:04 -04:00
committed by GitHub
parent 06488cc811
commit 59dbcc5261
3 changed files with 12 additions and 6 deletions

View File

@@ -115,7 +115,9 @@ const showPreviewButton = computed(() => {
return !type.includes('Preview')
})
const load3DAnimationSceneRef = ref(null)
const load3DAnimationSceneRef = ref<InstanceType<
typeof Load3DAnimationScene
> | null>(null)
const handleMouseEnter = () => {
const sceneRef = load3DAnimationSceneRef.value?.load3DSceneRef