|
@@ -100,6 +100,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ // document.addEventListener('scroll', this.onmousewheel, false);
|
|
|
this.getToBeSuppement();
|
|
|
},
|
|
|
created() {
|
|
@@ -109,6 +110,14 @@ export default {
|
|
|
...mapGetters('layout', ['projectId'])
|
|
|
},
|
|
|
methods: {
|
|
|
+ // onmousewheel() {
|
|
|
+ // let scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
|
|
|
+ // let clientHeight = document.documentElement.clientHeight;
|
|
|
+ // let contentTop = document.body.scrollHeight;
|
|
|
+ // if (scrollTop + clientHeight + 100 >= contentTop) {
|
|
|
+ // console.log(1);
|
|
|
+ // }
|
|
|
+ // },
|
|
|
copyContent(element) {
|
|
|
// 双击复制
|
|
|
let content = element.target.innerText;
|
|
@@ -230,6 +239,9 @@ export default {
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
+html {
|
|
|
+ height: auto;
|
|
|
+}
|
|
|
// 取消打印功能默认的左右边距
|
|
|
@media print {
|
|
|
@page {
|
|
@@ -353,4 +365,9 @@ export default {
|
|
|
canvas {
|
|
|
position: static !important;
|
|
|
}
|
|
|
+</style>
|
|
|
+<style>
|
|
|
+html {
|
|
|
+ height: auto;
|
|
|
+}
|
|
|
</style>
|