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