From 5da038138e5629359939679936e68a65a077daca Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 19 九月 2025 09:59:58 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
admin/src/components/common/Pagination.vue | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/admin/src/components/common/Pagination.vue b/admin/src/components/common/Pagination.vue
new file mode 100644
index 0000000..4b1c30a
--- /dev/null
+++ b/admin/src/components/common/Pagination.vue
@@ -0,0 +1,50 @@
+<template>
+ <div class="table-pagination">
+ <el-pagination
+ :current-page="pagination.pageIndex"
+ :page-sizes="[10, 20, 30, 40]"
+ :page-size="pagination.pageSize"
+ layout="total, sizes, prev, pager, next, jumper"
+ :total="pagination.total"
+ @size-change="sizeChange"
+ @current-change="currentChange"
+ background>
+ </el-pagination>
+ </div>
+</template>
+
+<script>
+export default {
+ name: 'Pagination',
+ props: {
+ pagination: {
+ type: Object,
+ default: function () {
+ return {}
+ }
+ }
+ },
+ data () {
+ return {
+ }
+ },
+ methods: {
+ /**
+ * 椤靛閲忓彉鏇�
+ *
+ * @param value 鏂伴〉瀹归噺
+ */
+ sizeChange (value) {
+ this.$emit('size-change', value)
+ },
+ /**
+ * 椤电爜鍙樻洿
+ *
+ * @param value 鏂伴〉鐮�
+ */
+ currentChange (value) {
+ this.$emit('current-change', value)
+ }
+ }
+}
+</script>
--
Gitblit v1.9.3