mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-24 01:00:35 +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)
|
Vue.component(DatePicker.name, DatePicker)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* istanbul ignore if */
|
||||||
|
if (typeof window !== 'undefined' && window.Vue) {
|
||||||
|
DatePicker.install(window.Vue)
|
||||||
|
}
|
||||||
|
|
||||||
export default DatePicker
|
export default DatePicker
|
||||||
|
|||||||
Reference in New Issue
Block a user