mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
fix(anchor)
This commit is contained in:
parent
ceaf93f533
commit
32b9bda0f0
@ -159,7 +159,7 @@ export default {
|
||||
this.activeHref = href
|
||||
const top = getOffset(linkEl, this.container).top + (this.container.scrollTop || 0)
|
||||
this.container.scrollTo({
|
||||
top: top - this.bound
|
||||
top: top
|
||||
})
|
||||
if (!transition) {
|
||||
this.disableTransitionOneTick()
|
||||
|
Loading…
Reference in New Issue
Block a user