xy 1 year ago
parent 15a683a321
commit 60ee10da6c

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

@ -71,8 +71,9 @@
:width="defaultModalSize.width"
:height="defaultModalSize.height"
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>
</el-card>
</template>

Loading…
Cancel
Save