mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-11 13:12:26 +03:00
feat: when use script type, install automatic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user