This commit is contained in:
X1627315083@163.com
2026-04-13 16:16:25 +08:00
parent 93d2eb0696
commit b16b41f44e
3 changed files with 10 additions and 3 deletions

View File

@@ -86,9 +86,11 @@ const {} = toRefs(data);
</template> </template>
<style lang="less" scoped> <style lang="less" scoped>
.modalDetail{ .modalDetail{
width: 100%; width: 22rem;
height: 100%; height: 100%;
position: relative; position: relative;
display: flex;
flex-direction: column;
> .title{ > .title{
margin: 2.4rem 0; margin: 2.4rem 0;
font-weight: 500; font-weight: 500;

View File

@@ -3,6 +3,7 @@ import { ref, onMounted, onUnmounted, reactive, toRefs } from "vue";
import threeGlb from '@/assets/images/three/sample.glb' import threeGlb from '@/assets/images/three/sample.glb'
import { uploadImage } from '@/api/upload' import { uploadImage } from '@/api/upload'
import { base64Tofile } from '@/components/Canvas/tools/tools' import { base64Tofile } from '@/components/Canvas/tools/tools'
import { ElMessage } from 'element-plus'
import model from './model.vue' import model from './model.vue'
import detail from './detail.vue' import detail from './detail.vue'
@@ -27,6 +28,8 @@ const captureView = async ()=>{
const formData = new FormData() const formData = new FormData()
formData.append('file', file) formData.append('file', file)
const minioUrl = await uploadImage(formData, true) const minioUrl = await uploadImage(formData, true)
ElMessage.warning('Your new view has been captured.')
emit('captureView', { emit('captureView', {
minioUrl, minioUrl,
nodeId: props?.currentData?.nodeId nodeId: props?.currentData?.nodeId
@@ -64,8 +67,10 @@ const {} = toRefs(data);
width: 65.5rem; width: 65.5rem;
} }
> .detailBox{ > .detailBox{
width: 22rem; flex: 1;
height: 100%; height: 100%;
display: flex;
justify-content: center;
} }
} }
</style> </style>

View File

@@ -272,7 +272,7 @@
} }
} }
}) })
threeModelRef.value.close() // threeModelRef.value.close()
} }
provide('openImagePreview', openImagePreview) provide('openImagePreview', openImagePreview)
provide('openThreeModelPreview', openThreeModelPreview) provide('openThreeModelPreview', openThreeModelPreview)