Commit 2c80ca87 by 李少勇

修改word文档预览显示问题

parent 2eb49548
...@@ -28,6 +28,11 @@ export default { ...@@ -28,6 +28,11 @@ export default {
let params = window.opener["params"]; let params = window.opener["params"];
let blob = params.blob let blob = params.blob
renderAsync(blob, this.$refs.file) renderAsync(blob, this.$refs.file)
this.$nextTick(() => {
let dom = document.querySelector('.docWrap')
dom.style.height = '100vh'
dom.style.overflow = 'auto'
})
}, },
async downLoad () { async downLoad () {
let params = window.opener["params"]; let params = window.opener["params"];
...@@ -44,12 +49,4 @@ export default { ...@@ -44,12 +49,4 @@ export default {
} }
}; };
</script> </script>
<style scoped></style>
<style scoped>
::v-deep .docx-wrapper {
width: 100%;
height: 100vh;
padding: 0;
overflow: auto;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment