This commit is contained in:
theluyuan 2024-09-25 10:54:18 +08:00
parent 47efc3461d
commit cf87e0c28a
4 changed files with 19 additions and 13 deletions

View File

@ -1181,10 +1181,12 @@ const _sfc_main = defineComponent({
emit("change", page); emit("change", page);
} else { } else {
page.current; page.current;
datalist.value = tableDataSource.value.slice( datalist.value = [
page.limit * (page.current - 1), ...tableDataSource.value.slice(
page.limit * page.current page.limit * (page.current - 1),
); page.limit * page.current
)
];
} }
}; };
const rowClick = function(data, evt) { const rowClick = function(data, evt) {

View File

@ -40236,10 +40236,12 @@ const _sfc_main$D = defineComponent({
emit("change", page); emit("change", page);
} else { } else {
page.current; page.current;
datalist.value = tableDataSource.value.slice( datalist.value = [
page.limit * (page.current - 1), ...tableDataSource.value.slice(
page.limit * page.current page.limit * (page.current - 1),
); page.limit * page.current
)
];
} }
}; };
const rowClick = function(data, evt) { const rowClick = function(data, evt) {

View File

@ -362,10 +362,12 @@ const change = function (page: any) {
emit("change", page); emit("change", page);
} else { } else {
pagecurrent = page.current; pagecurrent = page.current;
datalist.value = tableDataSource.value.slice( datalist.value = [
page.limit * (page.current - 1), ...tableDataSource.value.slice(
page.limit * page.current page.limit * (page.current - 1),
); page.limit * page.current
)
];
} }
}; };

File diff suppressed because one or more lines are too long