|
|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
- <div v-if="loading" >
|
|
|
- <div style="position:absolute;z-index: 9998;width: 100%;height: 100%;background: white; opacity: 0.25" @contextmenu.prevent >
|
|
|
+ <div v-if="loading">
|
|
|
+ <div style="position:absolute;z-index: 9998;width: 100%;height: 100%;top:0;left:0; background: white; opacity: 0.25"
|
|
|
+ @contextmenu.prevent>
|
|
|
</div>
|
|
|
<div style="position:absolute;z-index: 9999;" :style="styleJs">
|
|
|
<div class="container animation-6">
|
|
|
@@ -41,7 +42,7 @@ export default {
|
|
|
height: {
|
|
|
type: Number,
|
|
|
default: undefined
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
watch: {
|
|
|
loading(n, o) {
|
|
|
@@ -62,14 +63,6 @@ export default {
|
|
|
this.styleJs.left = this.width / 2 + 'px'
|
|
|
this.styleJs.top = this.height / 2 + 'px'
|
|
|
}
|
|
|
- this.$nextTick(()=>{
|
|
|
- let mainHeight = 0;
|
|
|
- let mainDiv = document.getElementsByClassName('main-div');
|
|
|
- if (mainDiv && mainDiv.length > 0) {
|
|
|
- mainHeight = mainDiv[0].scrollHeight
|
|
|
- }
|
|
|
- console.log('rrr',mainDiv,mainHeight)
|
|
|
- })
|
|
|
},
|
|
|
}
|
|
|
</script>
|