mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Tabs): failed to set active tab #7717
This commit is contained in:
parent
8a2495ee6b
commit
c2b86512f6
@ -362,7 +362,7 @@ export default createComponent({
|
||||
() => props.active,
|
||||
(value) => {
|
||||
if (value !== currentName.value) {
|
||||
setCurrentIndexByName(name);
|
||||
setCurrentIndexByName(value);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user