Skip to content

Commit 8bb432b

Browse files
committed
Fixed plugin installation
1 parent c70b2ac commit 8bb432b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import TinyPagination from './src/components/TinyPagination.vue'
22

3-
export function install (Vue) {
3+
const install = (Vue, opts ={}) => {
44
if (install.installed) return
55
install.installed = true
66
Vue.component('TinyPagination', TinyPagination)
77
}
88

99
const plugin = {
10-
install
10+
install,
11+
TinyPagination
1112
}
1213

1314
let GlobalVue = null
@@ -20,5 +21,4 @@ if (GlobalVue) {
2021
GlobalVue.use(plugin)
2122
}
2223

23-
export { TinyPagination }
24-
export default plugin
24+
export default plugin

0 commit comments

Comments
 (0)