|
@@ -87,15 +87,7 @@ const onPause = () => {
|
|
|
};
|
|
|
const test = ref(null);
|
|
|
const lookImg = (url) => {
|
|
|
- // if (!dom.value) {
|
|
|
-
|
|
|
- // dom.value = myViewer.value.$viewer;
|
|
|
- // }
|
|
|
- // console.error( myViewer.value.$viewer)
|
|
|
-
|
|
|
images.value = [url];
|
|
|
- console.error(myViewer.value.$viewer);
|
|
|
- // myViewer.value.show();
|
|
|
|
|
|
if (dom.value) {
|
|
|
dom.value.show();
|
|
@@ -111,11 +103,10 @@ onMounted(() => {
|
|
|
let domBox = null;
|
|
|
if (props.iframeData.type == "2D") {
|
|
|
domBox = document.querySelector(".image-box");
|
|
|
- domBox.style.height = `calc(100% - ${rectH.value - 20}px )`;
|
|
|
} else if (props.iframeData.type == "3D") {
|
|
|
domBox = document.querySelector(".iframe-box");
|
|
|
- domBox.style.height = `calc(100% - ${rectH.value - 20}px )`;
|
|
|
}
|
|
|
+ domBox.style.height = `calc(100% - ${rectH.value - 20}px )`;
|
|
|
if (audioRef.value) {
|
|
|
audioRef.value.addEventListener("pause", onPause);
|
|
|
}
|