|
1 | 1 | <template> |
2 | 2 | <div id="app"> |
3 | 3 | <header class="jumbotron text-center"> |
| 4 | + <img src="static/img/logo.png"> |
4 | 5 | <h1>Bootstrap Pagination for Vue</h1> |
5 | | - <br> |
6 | | - <p class="text-muted">Dev Mode</p> |
| 6 | + <p class="text-muted">A very simple vue component - bootstrap pagination</p> |
| 7 | + <p class="text-muted">Compatible with Vue 2.x & Bootstrap 3/4-beta</p> |
| 8 | + <a class="btn btn-outline-secondary btn-lg" href="https://github.com/meteorlxy/vue-bs-pagination" target="_blank"><i class="fa fa-github"></i> GitHub</a> |
7 | 9 | </header> |
8 | 10 | <main class="container"> |
9 | | - <div class="form-group"> |
10 | | - <label for="input-total">Total Pages</label> |
11 | | - <input type="number" class="form-control" id="input-total" v-model.number="total"> |
12 | | - <small class="form-text text-muted">prop: <code>total</code>, type: <code>Number</code>, required: <code>true</code></small> |
13 | | - </div> |
14 | | - <div class="form-group"> |
15 | | - <label for="input-each-side">Each Side</label> |
16 | | - <input type="number" class="form-control" id="input-each-side" v-model.number="eachSide"> |
17 | | - <small class="form-text text-muted">prop: <code>eachSide</code>, type: <code>Number</code>, default: <code>1</code></small> |
18 | | - </div> |
19 | | - <div class="form-group"> |
20 | | - <label for="input-current-page">Current Page</label> |
21 | | - <input type="number" class="form-control" id="input-current-page" :value="currentPage" readonly> |
22 | | - <small class="form-text text-muted">v-model: <code>currentPage</code></small> |
23 | | - </div> |
24 | | - <div> |
25 | | - <p>Result</p> |
26 | | - <v-pagination v-model="currentPage" :total="total" :each-side="eachSide"></v-pagination> |
| 11 | + <div id="demo"> |
| 12 | + <h3>Demo</h3> |
| 13 | + <hr> |
| 14 | + <div class="form-group"> |
| 15 | + <label for="input-total">Total Pages</label> |
| 16 | + <input type="number" class="form-control" id="input-total" v-model.number="total"> |
| 17 | + <small class="form-text text-muted">prop: <code>total</code>, type: <code>Number</code>, required: <code>true</code></small> |
| 18 | + </div> |
| 19 | + <div class="form-group"> |
| 20 | + <label for="input-each-side">Each Side</label> |
| 21 | + <input type="number" class="form-control" id="input-each-side" v-model.number="eachSide"> |
| 22 | + <small class="form-text text-muted">prop: <code>eachSide</code>, type: <code>Number</code>, default: <code>1</code></small> |
| 23 | + </div> |
| 24 | + <div class="form-group"> |
| 25 | + <label for="input-current-page">Current Page</label> |
| 26 | + <input type="number" class="form-control" id="input-current-page" :value="currentPage" readonly> |
| 27 | + <small class="form-text text-muted">v-model: <code>currentPage</code></small> |
| 28 | + </div> |
| 29 | + <div> |
| 30 | + <p>Result</p> |
| 31 | + <v-pagination v-model="currentPage" :total="total" :each-side="eachSide"></v-pagination> |
| 32 | + </div> |
27 | 33 | </div> |
28 | 34 | </main> |
| 35 | + <footer class="text-center text-muted"> |
| 36 | + <hr> |
| 37 | + <p>vue-bs-pagination</p> |
| 38 | + <div class="h3 mb-5"> |
| 39 | + <a href="https://github.com/meteorlxy/vue-bs-pagination" target="_blank"><i class="fa fa-github"></i></a> |
| 40 | + </div> |
| 41 | + </footer> |
29 | 42 | </div> |
30 | 43 | </template> |
31 | 44 |
|
|
0 commit comments