File tree Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import buble from 'rollup-plugin-buble'
3
3
import uglify from 'rollup-plugin-uglify-es'
4
4
5
5
export default {
6
- input : 'index.js' ,
6
+ input : 'src/ index.js' ,
7
7
output : {
8
8
name : 'VueTinyPagination' ,
9
9
exports : 'named'
Original file line number Diff line number Diff line change 1
- import TynyPagination from './components/TinyPagination'
1
+ import TinyPagination from './src/ components/TinyPagination.vue '
2
2
3
- export {
4
- TynyPagination
3
+ const install = ( Vue , opts = { } ) => {
4
+ if ( install . installed ) return
5
+ install . installed = true
6
+ Vue . component ( 'TinyPagination' , TinyPagination )
5
7
}
8
+
9
+ const plugin = {
10
+ version : '0.2.1-beta.5' ,
11
+ install,
12
+ TinyPagination
13
+ }
14
+
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 )
23
+ }
24
+
25
+ module . exports = plugin
26
+ module . exports . default = module . exports
You can’t perform that action at this time.
0 commit comments