| | |
| | | <template> |
| | | <div class="page-main" @scroll="throttledScrollHandler"> |
| | | <div class="page-main" @scroll="throttledScrollHandler"> |
| | | <div id="searchDomBox" style="display: none"> |
| | | <div id="searchContent"></div> |
| | | </div> |
| | |
| | | }, |
| | | computed: { |
| | | fontSize() { |
| | | this.transformDom(this.$store.state.qiankun.fontSize) |
| | | return this.$store.state.qiankun.fontSize; |
| | | }, |
| | | pageZoom() { |
| | |
| | | event.target.scrollHeight - this.loadThreshold |
| | | ) { |
| | | console.log(1); |
| | | |
| | | |
| | | debugger |
| | | // 到达阈值 |
| | | if ( |
| | |
| | | playVudio.requestPictureInPicture(); |
| | | } |
| | | } |
| | | }, |
| | | //其他类名下字体大小变化 |
| | | transformDom(fs) { |
| | | const blockElement = this.$refs.blockElement; |
| | | if (blockElement) { |
| | | blockElement.style.fontSize = fs; // 或者你想要的任何大小 |
| | | } |
| | | } |
| | | }, |
| | | components: { |