File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change 1
1
import TinyPagination from './src/components/TinyPagination.vue'
2
2
3
3
const install = ( Vue , opts = { } ) => {
4
- if ( install . installed ) return
5
- install . installed = true
6
4
Vue . component ( 'TinyPagination' , TinyPagination )
7
5
}
8
6
9
- const plugin = {
10
- version : '0.2.1-beta.6' ,
11
- install,
12
- TinyPagination
7
+ if ( typeof window !== 'undefined' && window . Vue ) {
8
+ install ( window . Vue )
13
9
}
14
10
15
- let GlobalVue = null
16
- if ( typeof window !== 'undefined' ) {
17
- GlobalVue = window . Vue
18
- } else if ( typeof global !== 'undefined' ) {
19
- GlobalVue = global . Vue
20
- }
21
- if ( GlobalVue ) {
22
- GlobalVue . use ( plugin )
11
+ module . exports = {
12
+ version : '0.2.1-beta.7' ,
13
+ install,
14
+ TinyPagination
23
15
}
24
16
25
- module . exports = plugin
26
17
module . exports . default = module . exports
You can’t perform that action at this time.
0 commit comments