|
|
|
|
@ -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))
|
|
|
|
|
},
|
|
|
|
|
|