Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite2b384c

Browse files
committed
Fixed plugin installation
1 parentd667ac9 commite2b384c

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

‎index.js

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
importTinyPaginationfrom'./src/components/TinyPagination.vue'
22

3-
constinstall=(Vue,opts={})=>{
3+
exportfunctioninstall(Vue){
4+
if(install.installed)return
5+
install.installed=true
46
Vue.component('TinyPagination',TinyPagination)
57
}
68

7-
if(typeofwindow!=='undefined'&&window.Vue){
8-
install(window.Vue)
9+
constplugin={
10+
install
911
}
1012

11-
module.exports={
12-
version:'0.2.1-beta.7',
13-
install,
14-
TinyPagination
13+
letGlobalVue=null
14+
if(typeofwindow!=='undefined'){
15+
GlobalVue=window.Vue
16+
}elseif(typeofglobal!=='undefined'){
17+
GlobalVue=global.Vue
18+
}
19+
if(GlobalVue){
20+
GlobalVue.use(plugin)
1521
}
1622

17-
module.exports.default=module.exports
23+
export{TinyPagination}
24+
exportdefaultplugin

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp