上级为3d的情况点击放大按钮为打开模型窗口
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user