xy 1 year ago
parent 15a683a321
commit 60ee10da6c

@ -11,10 +11,11 @@
:z-index="zIndex" :z-index="zIndex"
:footer-hide="true" :footer-hide="true"
title="预览" title="预览"
:padding="false"
> >
<template> <template>
<iframe <iframe
style="width: 100%; height: 100%;" style="display: block;width: 100%;height: 100%;border: 0;"
:src="codeUri" :src="codeUri"
frameborder="0" frameborder="0"
/> />
@ -37,6 +38,13 @@ export default {
} }
}, },
computed: {}, computed: {},
watch: {
showModal(newVal) {
if (!newVal) {
this.codeUri = ''
}
}
},
created() { created() {
this.$bus.$on('online-file', (url) => this.open(url)) this.$bus.$on('online-file', (url) => this.open(url))
}, },

@ -71,8 +71,9 @@
:width="defaultModalSize.width" :width="defaultModalSize.width"
:height="defaultModalSize.height" :height="defaultModalSize.height"
esc-closable esc-closable
:padding="false"
> >
<iframe :src="modalUrl" style="width: 100%;height: 100%" frameborder="0" /> <iframe :src="modalUrl" style="display: block;width: 100%;height: 100%;border: 0;" frameborder="0" />
</vxe-modal> </vxe-modal>
</el-card> </el-card>
</template> </template>

Loading…
Cancel
Save