Skip to content

Commit

Permalink
fix: protable未使用分页组件,截取了前10条数据的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zjb-it authored Oct 25, 2023
1 parent 9011dab commit 38c4bf5
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 38c4bf5

Please sign in to comment.