|
|
@ -13,16 +13,19 @@ export default {
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
|
src: {
|
|
|
|
src: {
|
|
|
|
type: String,
|
|
|
|
type: String,
|
|
|
|
required: true
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
height: document.documentElement.clientHeight - 94.5 + "px;",
|
|
|
|
height: document.documentElement.clientHeight - 94.5 + "px;",
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
|
url: this.src
|
|
|
|
url: this.src,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
created() {
|
|
|
|
|
|
|
|
console.log(this.url);
|
|
|
|
|
|
|
|
},
|
|
|
|
mounted: function () {
|
|
|
|
mounted: function () {
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
@ -31,6 +34,6 @@ export default {
|
|
|
|
window.onresize = function temp() {
|
|
|
|
window.onresize = function temp() {
|
|
|
|
that.height = document.documentElement.clientHeight - 94.5 + "px;";
|
|
|
|
that.height = document.documentElement.clientHeight - 94.5 + "px;";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|