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

Commit4af2116

Browse files
committed
Fixed plugin installation
1 parent179b31e commit4af2116

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

‎index.js

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

33
constinstall=(Vue,opts={})=>{
4-
if(install.installed)return
5-
install.installed=true
64
Vue.component('TinyPagination',TinyPagination)
75
}
86

9-
constplugin={
10-
version:'0.2.1-beta.6',
11-
install,
12-
TinyPagination
7+
if(typeofwindow!=='undefined'&&window.Vue){
8+
install(window.Vue)
139
}
1410

15-
letGlobalVue=null
16-
if(typeofwindow!=='undefined'){
17-
GlobalVue=window.Vue
18-
}elseif(typeofglobal!=='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
2617
module.exports.default=module.exports

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp