We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 179b31e commit 4af2116Copy full SHA for 4af2116
index.js
@@ -1,26 +1,17 @@
1
import TinyPagination from './src/components/TinyPagination.vue'
2
3
const install = (Vue, opts ={}) => {
4
- if (install.installed) return
5
- install.installed = true
6
Vue.component('TinyPagination', TinyPagination)
7
}
8
9
-const plugin = {
10
- version: '0.2.1-beta.6',
11
- install,
12
- TinyPagination
+if (typeof window !== 'undefined' && window.Vue) {
+ install(window.Vue)
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)
+module.exports = {
+ version: '0.2.1-beta.7',
+ install,
+ TinyPagination
23
24
25
-module.exports = plugin
26
module.exports.default = module.exports
0 commit comments