We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 410b2cc commit e4e3a93Copy full SHA for e4e3a93
vue-pagination.js
@@ -1,6 +1,6 @@
1
module.exports = {
2
- template: '<nav class=" {{navClass}} ">' +
3
- '<ul class="pagination {{size}} ">' +
+ template: '<nav class=" {{navClass}} " v-if="visible">' +
+ '<ul class="pagination {{size}} " >' +
4
'<li v-if="pagination.current_page > 1">' +
5
'<a href="#" aria-label="Previous" @click.prevent="changePage(1)">' +
6
'<span aria-hidden="true">First</span>' +
@@ -40,7 +40,8 @@ module.exports = {
40
data: function(){
41
return {
42
to : 0,
43
- from: 0
+ from: 0,
44
+ visible: 1
45
}
46
},
47
props: {
@@ -84,6 +85,9 @@ module.exports = {
84
85
arr.push(from);
86
from++;
87
88
+
89
+ if(arr.length == 1)
90
+ this.visible = 0
91
92
return arr;
93
0 commit comments