From fb34ba28cb908bd328cf6690ab0b19a56428f4e2 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 13 十一月 2026 10:56:55 +0800
Subject: [PATCH] 测试完成
---
src/components/Pagination/index.vue | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue
index 56f5a6b..39fc7c9 100644
--- a/src/components/Pagination/index.vue
+++ b/src/components/Pagination/index.vue
@@ -1,3 +1,5 @@
+
+<!-- 搴曢儴鍒嗛〉缁勪欢灏佽 -->
<template>
<div :class="{'hidden':hidden}" class="pagination-container">
<el-pagination
@@ -16,6 +18,7 @@
</template>
<script>
+// 寰呭畾
import { scrollTo } from '@/utils/scroll-to'
export default {
@@ -76,7 +79,10 @@
},
pageSize: {
get() {
- return this.limit
+ // limit 鍙兘琚�滃鍑衡�濈瓑鎿嶄綔涓存椂缃负 null锛岀洿鎺ラ�忎紶浼氳 el-pagination 绠楀嚭
+ // pageCount = total / 0 = Infinity锛岄〉鐮侀噷灏卞嚭鐜� 鈥渋nfinity鈥濄�傝繖閲屽厹搴曟垚 10
+ const size = Number(this.limit)
+ return size > 0 ? size : 10
},
set(val) {
this.$emit('update:limit', val)
--
Gitblit v1.9.3