mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] IndexBar: Top value calculation error (#3414)
This commit is contained in:
parent
a13cdcae61
commit
45018ee7eb
@ -103,7 +103,7 @@ export default sfc({
|
|||||||
} else if (index === active - 1) {
|
} else if (index === active - 1) {
|
||||||
const activeItemTop = rects[active].top - scrollTop;
|
const activeItemTop = rects[active].top - scrollTop;
|
||||||
item.active = activeItemTop > 0;
|
item.active = activeItemTop > 0;
|
||||||
item.top = activeItemTop - rects[active].height;
|
item.top = activeItemTop - item.height;
|
||||||
} else {
|
} else {
|
||||||
item.active = false;
|
item.active = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user