Skip to content

Commit a310f59

Browse files
committed
feat: when use script type, install automatic
1 parent de177d8 commit a310f59

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@ DatePicker.install = function (Vue) {
55
Vue.component(DatePicker.name, DatePicker)
66
}
77

8+
/* istanbul ignore if */
9+
if (typeof window !== 'undefined' && window.Vue) {
10+
DatePicker.install(window.Vue)
11+
}
12+
813
export default DatePicker

0 commit comments

Comments
 (0)