mirror of
https://github.com/requarks/wiki.git
synced 2025-02-25 18:55:30 -06:00
fix: page pagination in tags component (#7061)
This commit is contained in:
parent
abdd2f0d17
commit
f54551ee69
@ -98,6 +98,7 @@
|
||||
:search='innerSearch'
|
||||
:loading='isLoading'
|
||||
:options.sync='pagination'
|
||||
@page-count='pageTotal = $event'
|
||||
hide-default-footer
|
||||
ref='dude'
|
||||
)
|
||||
@ -183,6 +184,7 @@ export default {
|
||||
sortDesc: [false]
|
||||
},
|
||||
pages: [],
|
||||
pageTotal: 0,
|
||||
isLoading: true,
|
||||
scrollStyle: {
|
||||
vuescroll: {},
|
||||
@ -214,9 +216,6 @@ export default {
|
||||
tagsSelected () {
|
||||
return _.filter(this.tags, t => _.includes(this.selection, t.tag))
|
||||
},
|
||||
pageTotal () {
|
||||
return Math.ceil(this.pages.length / this.pagination.itemsPerPage)
|
||||
},
|
||||
orderByItems () {
|
||||
return [
|
||||
{ text: this.$t('tags:orderByField.creationDate'), value: 'createdAt' },
|
||||
|
Loading…
Reference in New Issue
Block a user