Skip to content

Commit 4333d1e

Browse files
authored
fix: export scroller to DOM (#329)
1 parent a562593 commit 4333d1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import VueScrollTo from './directive'
2-
import { setDefaults } from './scrollTo'
2+
import { setDefaults, scroller } from './scrollTo'
33

44
const install = function(Vue, options) {
55
if (options) setDefaults(options)
@@ -10,6 +10,7 @@ const install = function(Vue, options) {
1010
if (typeof window !== 'undefined' && window.Vue) {
1111
window.VueScrollTo = VueScrollTo
1212
window.VueScrollTo.setDefaults = setDefaults
13+
window.VueScrollTo.scroller = scroller
1314
window.Vue.use(install)
1415
}
1516

0 commit comments

Comments
 (0)