primevue-mirror/components/lib/paginator/BasePaginator.vue

50 lines
1.1 KiB
Vue
Raw Normal View History

2023-05-30 13:39:08 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import PaginatorStyle from 'primevue/paginator/style';
2023-05-30 13:39:08 +00:00
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,
2023-05-30 13:39:08 +00:00
provide() {
return {
$parentInstance: this
};
}
};
</script>