ag-element-ui/packages/agPagination/src/index.vue

36 lines
634 B
Vue
Raw Normal View History

2024-07-05 15:42:19 +08:00
<template>
<el-pagination class="ag-pagination" v-bind="attrs" v-on="$listeners">
</el-pagination>
</template>
<script>
export default {
name: "agPagination",
props: {
tabsData: {
type: Array,
default: () => {
return [];
},
},
},
data() {
return {};
},
computed: {
attrs() {
return {
total: 0,
"page-size": 20,
"current-page": 1,
"page-sizes": [20, 50, 100, 200],
layout: "total, sizes, prev, pager, next, jumper",
...this.$attrs,
};
},
},
methods: {},
};
</script>
<style scoped lang="scss">
</style>