3d模型3视图
This commit is contained in:
@@ -58,8 +58,8 @@
|
||||
/>
|
||||
<image-preview ref="imagePreviewRef" />
|
||||
<baseModal ref="threeModelRef">
|
||||
<template v-slot="{ currentUrl }">
|
||||
<threeModel :currentUrl="currentUrl" />
|
||||
<template v-slot="{ currentData }">
|
||||
<threeModel :currentData="currentData" />
|
||||
</template>
|
||||
</baseModal>
|
||||
</template>
|
||||
@@ -194,6 +194,9 @@
|
||||
return JSON.stringify(stateManager.nodes.value)
|
||||
}
|
||||
const exportFlow = () => {
|
||||
console.log(vueFlow.value)
|
||||
console.log(vueFlow.value.toImage)
|
||||
return
|
||||
// flowManager.exportFlow()
|
||||
const str = getFlowJson()
|
||||
stateManager.isSave.value = false
|
||||
@@ -224,8 +227,8 @@
|
||||
imagePreviewRef.value.open(url)
|
||||
}
|
||||
/** 打开3D预览 */
|
||||
const openThreeModelPreview = (url: string) => {
|
||||
threeModelRef.value.open(url)
|
||||
const openThreeModelPreview = (currentData) => {
|
||||
threeModelRef.value.open(currentData)
|
||||
}
|
||||
provide('openImagePreview', openImagePreview)
|
||||
provide('openThreeModelPreview', openThreeModelPreview)
|
||||
|
||||
Reference in New Issue
Block a user