From 5e3624b0f7d95aee0dbf3e8c5797b5205c41bc21 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 19 十一月 2025 11:40:56 +0800
Subject: [PATCH] 1.金鹰黄金-汇总页面可以看到每个设备的每个月的金额,也可以选择看每年的金额
---
src/components/Pagination/index.vue | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue
index f67f5cc..53fbec2 100644
--- a/src/components/Pagination/index.vue
+++ b/src/components/Pagination/index.vue
@@ -59,7 +59,7 @@
}
})
-const emit = defineEmits();
+const emit = defineEmits()
const currentPage = computed({
get() {
return props.page
@@ -76,6 +76,7 @@
emit('update:limit', val)
}
})
+
function handleSizeChange(val) {
if (currentPage.value * val > props.total) {
currentPage.value = 1
@@ -85,19 +86,18 @@
scrollTo(0, 800)
}
}
+
function handleCurrentChange(val) {
emit('pagination', { page: val, limit: pageSize.value })
if (props.autoScroll) {
scrollTo(0, 800)
}
}
-
</script>
<style scoped>
.pagination-container {
background: #fff;
- padding: 32px 16px;
}
.pagination-container.hidden {
display: none;
--
Gitblit v1.9.3