Skip to content

Commit

Permalink
Merge pull request HalseySpicy#334 from zjb-it/master
Browse files Browse the repository at this point in the history
fix: protable未使用分页组件,截取了前10条数据的bug
  • Loading branch information
HalseySpicy authored Oct 25, 2023
2 parents 9011dab + 38c4bf5 commit 608d468
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ProTable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ onMounted(() => {
// 处理表格数据
const processTableData = computed(() => {
if (!props.data) return tableData.value;
if (!props.pagination) return props.data;
return props.data.slice(
(pageable.value.pageNum - 1) * pageable.value.pageSize,
pageable.value.pageSize * pageable.value.pageNum
Expand Down

0 comments on commit 608d468

Please sign in to comment.