mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[fix]:修复tabs在初始化的时候active的值被tabs的默认值给覆盖掉的问题 (#3874)
This commit is contained in:
parent
405bd9d253
commit
f321e202f4
@ -131,7 +131,7 @@ VantComponent({
|
||||
this.children.length > data.swipeThreshold || !data.ellipsis,
|
||||
});
|
||||
|
||||
this.setCurrentIndexByName(this.getCurrentName() || data.active);
|
||||
this.setCurrentIndexByName(data.active || this.getCurrentName());
|
||||
},
|
||||
|
||||
trigger(eventName: string, child?: TrivialInstance) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user