Skip to content

Commit

Permalink
解决tab示例bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ximan committed Feb 3, 2016
1 parent a4c38aa commit be9ec03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions dist/dropload.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@
// 如果指定锁下方
}else if(direction == 'down'){
me.isLockDown = true;
// 为了解决DEMO5中tab效果bug,因为滑动到下面,再滑上去点tab,direction=down,所以有bug
me.direction = 'up';
}
};

Expand All @@ -257,6 +259,8 @@
// 简单粗暴解锁
me.isLockUp = false;
me.isLockDown = false;
// 为了解决DEMO5中tab效果bug,因为滑动到下面,再滑上去点tab,direction=down,所以有bug
me.direction = 'up';
};

// 无数据
Expand Down
6 changes: 3 additions & 3 deletions examples/tab.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
background-color: #eee;
}
.tab .item{
display: block;
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
Expand Down Expand Up @@ -140,10 +141,9 @@
// 解锁
dropload.unlock();
dropload.noData(false);

}else{
// 锁定
dropload.lock();
dropload.lock('down');
dropload.noData();
}
// 如果选中菜单二
Expand All @@ -154,7 +154,7 @@
dropload.noData(false);
}else{
// 锁定
dropload.lock();
dropload.lock('down');
dropload.noData();
}
}
Expand Down

0 comments on commit be9ec03

Please sign in to comment.