mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
Merge branch 'dev' of https://github.com/youzan/vant into dev
This commit is contained in:
commit
caac68afb5
@ -103,7 +103,7 @@ export default sfc({
|
||||
} else if (index === active - 1) {
|
||||
const activeItemTop = rects[active].top - scrollTop;
|
||||
item.active = activeItemTop > 0;
|
||||
item.top = activeItemTop - rects[active].height;
|
||||
item.top = activeItemTop - item.height;
|
||||
} else {
|
||||
item.active = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user