mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(Tab): fix line incorrect style when set tabs async @rex-zsd (#816)
This commit is contained in:
parent
aff7444c91
commit
53e752343a
@ -27,7 +27,6 @@ VantComponent({
|
||||
title() {
|
||||
const parent = this.getRelationNodes('../tabs/index')[0];
|
||||
if (parent) {
|
||||
parent.setLine();
|
||||
parent.updateTabs();
|
||||
}
|
||||
}
|
||||
|
@ -152,8 +152,10 @@ VantComponent({
|
||||
}
|
||||
});
|
||||
|
||||
this.setLine();
|
||||
this.scrollIntoView();
|
||||
this.setData({}, () => {
|
||||
this.setLine();
|
||||
this.scrollIntoView();
|
||||
});
|
||||
},
|
||||
|
||||
// scroll active tab into view
|
||||
|
Loading…
x
Reference in New Issue
Block a user