上级为3d的情况点击放大按钮为打开模型窗口

This commit is contained in:
X1627315083@163.com
2026-03-16 15:28:05 +08:00
parent 334c658d7c
commit f44adb0244
7 changed files with 37 additions and 13 deletions

View File

@@ -56,7 +56,9 @@
/>
<image-preview ref="imagePreviewRef" />
<baseModal ref="threeModelRef">
<threeModel />
<template v-slot="{ currentUrl }">
<threeModel :currentUrl="currentUrl" />
</template>
</baseModal>
</template>
@@ -215,7 +217,12 @@
const openImagePreview = (url: string) => {
imagePreviewRef.value.open(url)
}
/** 打开3D预览 */
const openThreeModelPreview = (url: string) => {
threeModelRef.value.open(url)
}
provide('openImagePreview', openImagePreview)
provide('openThreeModelPreview', openThreeModelPreview)
onMounted(async () => {
// window['vueFlow'] = vueFlow