提交 109bed23 编写于 作者: guangjun.yang's avatar guangjun.yang

去掉截流事件

上级 b51347d3
<!-- Tabs组件 -->
<template>
<div class="common-tabs-wrapper" >
<div class="common-tabs-wrapper">
<div class="sub-wrapper" :class="{'fixed': needFixed}">
<ul class="common-tabs">
<li
......@@ -69,7 +69,7 @@ export default {
position: fixed;
top: 70px;
width: 100%;
z-index: 10000000;
z-index: 1000000000;
background: #fff;
white-space: nowrap;
overflow-x: auto;
......@@ -80,7 +80,7 @@ export default {
width: 100%;
top: 0;
left: 0;
z-index: 1;
z-index: 1000000000;
font-size: 13px;
.common-tabs {
width: 100%;
......
......@@ -342,13 +342,21 @@ export default {
if (this.$rocNative.isWeb) {
this.getProjectInfo(this.queryParams);
}
// window.addEventListener(
// 'scroll',
// () => {
// if (timeOutId) {
// clearTimeout(timeOutId);
// }
// timeOutId = setTimeout(this.handleScroll, 10);
// },
// false
// );
window.addEventListener(
'scroll',
() => {
if (timeOutId) {
clearTimeout(timeOutId);
}
timeOutId = setTimeout(this.handleScroll, 10);
this.handleScroll()
},
false
);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册