File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,15 @@ module.exports = {
22
22
}
23
23
} ,
24
24
25
- template : `
26
- <ul class="pagination" v-if="data.total > data.per_page">
27
- <li v-if="data.prev_page_url">
28
- <a href="#" aria-label="Previous" @click.prevent="selectPage(--data.current_page)"><span aria-hidden="true">«</span></a>
29
- </li>
30
- <li v-for="n in getPages()" :class="{ 'active': n == data.current_page }"><a href="#" @click.prevent="selectPage(n)">{{ n }}</a></li>
31
- <li v-if="data.next_page_url">
32
- <a href="#" aria-label="Next" @click.prevent="selectPage(++data.current_page)"><span aria-hidden="true">»</span></a>
33
- </li>
34
- </ul>` ,
25
+ template : '<ul class="pagination" v-if="data.total > data.per_page">\
26
+ <li v-if="data.prev_page_url">\
27
+ <a href="#" aria-label="Previous" @click.prevent="selectPage(--data.current_page)"><span aria-hidden="true">«</span></a>\
28
+ </li>\
29
+ <li v-for="n in getPages()" :class="{ \'active\': n == data.current_page }"><a href="#" @click.prevent="selectPage(n)">{{ n }}</a></li>\
30
+ <li v-if="data.next_page_url">\
31
+ <a href="#" aria-label="Next" @click.prevent="selectPage(++data.current_page)"><span aria-hidden="true">»</span></a>\
32
+ </li>\
33
+ </ul>' ,
35
34
36
35
methods : {
37
36
selectPage : function ( page ) {
@@ -41,7 +40,7 @@ module.exports = {
41
40
if ( this . limit === - 1 ) {
42
41
return 0 ;
43
42
}
44
-
43
+
45
44
if ( this . limit === 0 ) {
46
45
return this . data . last_page ;
47
46
}
You can’t perform that action at this time.
0 commit comments