50 lines
1.1 KiB
Vue
50 lines
1.1 KiB
Vue
<script>
|
|
import BaseComponent from 'primevue/basecomponent';
|
|
import PaginatorStyle from 'primevue/paginator/style';
|
|
|
|
export default {
|
|
name: 'BasePaginator',
|
|
extends: BaseComponent,
|
|
props: {
|
|
totalRecords: {
|
|
type: Number,
|
|
default: 0
|
|
},
|
|
rows: {
|
|
type: Number,
|
|
default: 0
|
|
},
|
|
first: {
|
|
type: Number,
|
|
default: 0
|
|
},
|
|
pageLinkSize: {
|
|
type: Number,
|
|
default: 5
|
|
},
|
|
rowsPerPageOptions: {
|
|
type: Array,
|
|
default: null
|
|
},
|
|
template: {
|
|
type: [Object, String],
|
|
default: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown'
|
|
},
|
|
currentPageReportTemplate: {
|
|
type: null,
|
|
default: '({currentPage} of {totalPages})'
|
|
},
|
|
alwaysShow: {
|
|
type: Boolean,
|
|
default: true
|
|
}
|
|
},
|
|
style: PaginatorStyle,
|
|
provide() {
|
|
return {
|
|
$parentInstance: this
|
|
};
|
|
}
|
|
};
|
|
</script>
|