diff --git a/src/index.js b/src/index.js index e0ab2581..d2a828cd 100644 --- a/src/index.js +++ b/src/index.js @@ -5,4 +5,9 @@ DatePicker.install = function (Vue) { Vue.component(DatePicker.name, DatePicker) } +/* istanbul ignore if */ +if (typeof window !== 'undefined' && window.Vue) { + DatePicker.install(window.Vue) +} + export default DatePicker