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

Commit08bfc12

Browse files
authored
Merge pull request#4 from coderdiaz/build
Build
2 parents5d521a4 +1731dec commit08bfc12

15 files changed

+1299
-55
lines changed

‎.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.DS_Store
22
node_modules/
3-
dist/
4-
public/
3+
public/dist/
54
coverage/
65
npm-debug.log
76
yarn-error.log

‎README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $ npm i -S vue-tiny-pagination
3434
@tiny:change-page="changePage"></tiny-pagination>
3535
</div>
3636
```
37-
37+
You can import the component and define this in specific section:
3838
```javascript
3939
import {TinyPagination}from'vue-tiny-pagination'
4040

@@ -56,6 +56,18 @@ new Vue({
5656
}
5757
});
5858
```
59+
or define the component on Global application
60+
```javascript
61+
importTinyPaginationfrom'vue-tiny-pagination'
62+
Vue.use(TinyPagination)
63+
```
64+
65+
For use in browser can you use Unpkg:
66+
```
67+
https://unpkg.com/vue-tiny-pagination@latest/dist/vue-tiny-pagination.min.js
68+
```
69+
70+
Example in browser here:https://jsfiddle.net/coderdiaz/g5vLex83/3/
5971

6072
###Documentation
6173

‎build/rollup.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
importvuefrom'rollup-plugin-vue'
2+
importbublefrom'rollup-plugin-buble'
3+
importuglifyfrom'rollup-plugin-uglify-es'
4+
5+
exportdefault{
6+
input:'index.js',
7+
output:{
8+
name:'VueTinyPagination',
9+
exports:'named'
10+
},
11+
plugins:[
12+
vue({
13+
css:true,
14+
compileTemplate:true
15+
}),
16+
buble(),
17+
uglify()
18+
]
19+
}

‎dist/vue-tiny-pagination.esm.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎dist/vue-tiny-pagination.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎dist/vue-tiny-pagination.umd.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎index.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
importTinyPaginationfrom'./src/components/TinyPagination.vue'
2+
3+
exportfunctioninstall(Vue){
4+
if(install.installed)return
5+
install.installed=true
6+
Vue.component('TinyPagination',TinyPagination)
7+
}
8+
9+
constplugin={
10+
install
11+
}
12+
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)
21+
}
22+
23+
export{TinyPagination}
24+
exportdefaultplugin

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp