[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

@@ -95,7 +95,7 @@ const backgroundImage = ref('')
const upDirection = ref<UpDirection>('original')
const materialMode = ref<MaterialMode>('original')
const edgeThreshold = ref(85)
const load3DSceneRef = ref(null)
const load3DSceneRef = ref<InstanceType<typeof Load3DScene> | null>(null)
const showPreviewButton = computed(() => {
return !type.includes('Preview')