Skip to content

Commit 034f3d8

Browse files
committed
feat(scroll-nav): add scrollTo API
1 parent dad48eb commit 034f3d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/scroll-nav/scroll-nav.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@
125125
})
126126
},
127127
methods: {
128+
scrollTo() {
129+
this.$refs.scroll && this.$refs.scroll.scrollTo.apply(this.$refs.scroll, arguments)
130+
},
128131
refresh() {
129132
this.navBar && this.navBar.refresh()
130133
this.$refs.sticky.refresh()

0 commit comments

Comments
 (0)