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 11import TinyPagination from './src/components/TinyPagination.vue'
22
33const install = ( Vue , opts = { } ) => {
4- if ( install . installed ) return
5- install . installed = true
64 Vue . component ( 'TinyPagination' , TinyPagination )
75}
86
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 )
139}
1410
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
2315}
2416
25- module . exports = plugin
2617module . exports . default = module . exports
You can’t perform that action at this time.
0 commit comments