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

去掉截流事件

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