test table
This commit is contained in:
@@ -1131,18 +1131,13 @@ const _sfc_main = defineComponent({
|
||||
tmp.total = tableDataSource.value.length;
|
||||
emit("update:page", tmp);
|
||||
sxlist.value = {};
|
||||
change({
|
||||
limit: props.page.limit,
|
||||
current: pagecurrent || props.page.current
|
||||
});
|
||||
}
|
||||
});
|
||||
let pagecurrent;
|
||||
const change = function(page) {
|
||||
if (props.serverpage) {
|
||||
emit("change", page);
|
||||
} else {
|
||||
pagecurrent = page.current;
|
||||
page.current;
|
||||
datalist.value = tableDataSource.value.slice(page.limit * (page.current - 1), page.limit * page.current);
|
||||
}
|
||||
};
|
||||
@@ -1513,7 +1508,7 @@ const _sfc_main = defineComponent({
|
||||
tableDataSource.value = endlist;
|
||||
change({
|
||||
limit: props.page.limit,
|
||||
current: pagecurrent || props.page.current,
|
||||
current: props.page.current,
|
||||
isReload: true
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user