Files
ZDXSGYHT/library/components/VabPagination/index.vue
liangjian 836c61ac55 @@@@@@
2026-01-27 16:32:15 +08:00

45 lines
928 B
Vue

<template>
<el-pagination
:background="background"
:current-page="currentPage"
:default-current-page="defaultCurrentPage"
:default-page-size="defaultPageSize"
:disabled="disabled"
:hide-on-single-page="hideOnSinglePage"
:layout="layout"
:next-icon="nextIcon"
:next-text="nextText"
:page-count="pageCount"
:page-size="PageSize"
:page-sizes="pageSizes"
:pager-count="pagerCount"
:popper-class="popperClass"
:prev-icon="prevIcon"
:prev-text="prevText"
:small="small"
:teleported="teleported"
:total="total"
v-bind="$attrs"
/>
</template>
<script setup>
import { ElPagination } from 'element-plus';
defineOptions({
name: 'VabPagination',
})
defineProps({
...ElPagination.props,
layout: {
type: String,
default: 'total, sizes, prev, pager, next, jumper',
},
background: {
type: Boolean,
default: true,
},
})
</script>