mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Tabs): incorrect active tab when active prop is zero (#8087)
This commit is contained in:
parent
eb96e829f4
commit
4db9449f74
@ -142,7 +142,7 @@ export default createComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
children() {
|
children() {
|
||||||
this.setCurrentIndexByName(this.active || this.currentName);
|
this.setCurrentIndexByName(this.active);
|
||||||
this.setLine();
|
this.setLine();
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user