Skip to content

Commit

Permalink
Fixed Staic Mode pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
yoanhg421 authored Feb 28, 2023
1 parent 6df73b2 commit 2e4ccce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/TableLite.vue
Original file line number Diff line number Diff line change
Expand Up @@ -632,12 +632,12 @@ export default defineComponent({
});
result = {};
for (let index = 0; index < setting.limit; index++) {
for (let index = setting.offset - 1; index < setting.limit; index++) {
result[rows[index][props.groupingKey]] = tmp[rows[index][props.groupingKey]];
}
} else {
result = [];
for (let index = 0; index < setting.limit; index++) {
for (let index = setting.offset - 1; index < setting.limit; index++) {
result.push(rows[index]);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/TableLiteTs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -670,12 +670,12 @@ export default defineComponent({
});

result = {} as any;
for (let index = 0; index < setting.limit; index++) {
for (let index = setting.offset - 1; index < setting.limit; index++) {
result[rows[index][props.groupingKey]] = tmp[rows[index][props.groupingKey]];
}
} else {
result = [];
for (let index = 0; index < setting.limit; index++) {
for (let index = setting.offset - 1; index < setting.limit; index++) {
result.push(rows[index]);
}
}
Expand Down

0 comments on commit 2e4ccce

Please sign in to comment.