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

Commitc740cfc

Browse files
author
Javier Diaz
committed
feature: updated entryfile for new approach
1 parent69cd871 commitc740cfc

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

‎index.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
importTinyPaginationfrom'./packages/TinyPagination/index';
2+
3+
constcomponents=[
4+
TinyPagination,
5+
];
6+
7+
exportfunctioninstall(Vue){
8+
if(install.installed)return;
9+
install.installed=true;
10+
components.forEach((component)=>{
11+
Vue.component(component.name,component);
12+
});
13+
}
14+
15+
constplugin={
16+
install,
17+
};
18+
19+
letGlobalVue=null;
20+
if(typeofwindow!=='undefined'){
21+
GlobalVue=window.Vue;
22+
}elseif(typeofglobal!=='undefined'){
23+
GlobalVue=global.Vue;
24+
}
25+
if(GlobalVue){
26+
GlobalVue.use(plugin);
27+
}
28+
29+
export{
30+
TinyPagination,
31+
};
32+
33+
exportdefaultplugin;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp