From 9057e04efad1b7d61c77a72e5c37a504d0aee935 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 26 九月 2025 09:24:03 +0800
Subject: [PATCH] H5静态化

---
 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