Skip to content

Commit

Permalink
feat: when use script type, install automatic
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxiong10 committed Oct 17, 2018
1 parent de177d8 commit a310f59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a310f59

Please sign in to comment.