提交 e1679798 编写于 作者: H hdx

custom-tab-bar: 调整因差异导致切换tab箭头状态不正确的问题

上级 8ebd4a1d
......@@ -80,10 +80,11 @@
},
methods: {
onTabClick(index : number) {
this.setSelectedIndex(index);
if (index == 0) {
if (this.selectedIndex == index && index == 0) {
this.displayArrow = false;
(this.$refs["tab1"]! as ComponentPublicInstance).$callMethod('scrollTop', 0)
}
this.setSelectedIndex(index);
},
onTabPageEvent(top : number) {
this.displayArrow = top > this.tabViewHeight
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册