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() {
|
title() {
|
||||||
const parent = this.getRelationNodes('../tabs/index')[0];
|
const parent = this.getRelationNodes('../tabs/index')[0];
|
||||||
if (parent) {
|
if (parent) {
|
||||||
parent.setLine();
|
|
||||||
parent.updateTabs();
|
parent.updateTabs();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -152,8 +152,10 @@ VantComponent({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.setLine();
|
this.setData({}, () => {
|
||||||
this.scrollIntoView();
|
this.setLine();
|
||||||
|
this.scrollIntoView();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
// scroll active tab into view
|
// scroll active tab into view
|
||||||
|
Loading…
x
Reference in New Issue
Block a user