Skip to content

Commit 8519cbb

Browse files
committed
Changed pageSize from 15 to 10 and custom class default
1 parent 08ddf59 commit 8519cbb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: src/components/TinyPagination.vue

+6-5
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ export default {
3232
default: 'en'
3333
},
3434
customClass: {
35-
type: String,
36-
default: ''
35+
type: String
3736
}
3837
},
3938
data () {
@@ -49,19 +48,21 @@ export default {
4948
return Language.translations[this.lang]
5049
},
5150
totalPages () {
52-
return Math.ceil(this.total/15)
51+
return Math.ceil(this.total/10)
5352
},
5453
titlePage () {
5554
return `${this.translation.title} ${this.currentPage}`
5655
},
5756
classFirstPage () {
5857
return {
59-
disabled: (this.currentPage === 1)
58+
disabled: (this.currentPage === 1),
59+
'c-not-allowed': true
6060
}
6161
},
6262
classLastPage () {
6363
return {
64-
disabled: (this.currentPage === this.totalPages)
64+
disabled: (this.currentPage === this.totalPages),
65+
'c-not-allowed': true
6566
}
6667
}
6768
},

0 commit comments

Comments
 (0)