summaryrefslogtreecommitdiff
path: root/UI source code/dns_mapping_ui-master/src/components/Iframe/index.vue
diff options
context:
space:
mode:
Diffstat (limited to 'UI source code/dns_mapping_ui-master/src/components/Iframe/index.vue')
-rw-r--r--UI source code/dns_mapping_ui-master/src/components/Iframe/index.vue30
1 files changed, 30 insertions, 0 deletions
diff --git a/UI source code/dns_mapping_ui-master/src/components/Iframe/index.vue b/UI source code/dns_mapping_ui-master/src/components/Iframe/index.vue
new file mode 100644
index 0000000..9f395a3
--- /dev/null
+++ b/UI source code/dns_mapping_ui-master/src/components/Iframe/index.vue
@@ -0,0 +1,30 @@
+<template>
+ <div v-loading="loading" :style="'height:'+ height">
+ <iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" />
+ </div>
+</template>
+<script>
+export default {
+ props: {
+ src: {
+ type: String,
+ required: true
+ }
+ },
+ data() {
+ return {
+ height: document.documentElement.clientHeight - 94.5 + 'px;',
+ loading: true
+ }
+ },
+ mounted: function() {
+ setTimeout(() => {
+ this.loading = false
+ }, 230)
+ const that = this
+ window.onresize = function temp() {
+ that.height = document.documentElement.clientHeight - 94.5 + 'px;'
+ }
+ }
+}
+</script>