2
0
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:
mxie
2018-10-17 09:58:06 +08:00
parent de177d874f
commit a310f59c47
+5
View File
@@ -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