From 1dd8c16cc06360344994212a26974d9bd87622c9 Mon Sep 17 00:00:00 2001 From: Ekanant Phanuwatyingyong Date: Wed, 29 Jul 2020 14:56:29 +0700 Subject: [PATCH] :sparkles: export scroll for html template --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index d5d43c17..a788829b 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,5 @@ import VueScrollTo from './directive' -import { setDefaults } from './scrollTo' +import { setDefaults, scroller } from './scrollTo' const install = function(Vue, options) { if (options) setDefaults(options) @@ -10,6 +10,7 @@ const install = function(Vue, options) { if (typeof window !== 'undefined' && window.Vue) { window.VueScrollTo = VueScrollTo window.VueScrollTo.setDefaults = setDefaults + window.VueScrollTo.scroller = scroller window.Vue.use(install) }