fix(table): 统一筛选交互并补齐移动视口覆盖

This commit is contained in:
zhanjunhao
2026-11-24 20:14:10 +08:00
parent 437a0345e8
commit dd4da99f1d
83 changed files with 2094 additions and 1355 deletions
+3 -4
View File
@@ -17,7 +17,8 @@ const UsersFilters = ({
t,
}) => {
const { scheduleSearch, submitSearch, cancelPendingSearch } = useFilterSearch(
() => searchUsers(1, pageSize),
(_, signal) =>
searchUsers(Math.max(1, activePage), pageSize, null, null, signal),
);
const formApiRef = useRef(null);
@@ -26,9 +27,7 @@ const UsersFilters = ({
if (!formApiRef.current) return;
formApiRef.current.reset();
cancelPendingSearch();
setTimeout(() => {
loadUsers(1, pageSize);
}, 100);
loadUsers(1, pageSize).catch(() => {});
};
return (
+1
View File
@@ -84,6 +84,7 @@ const UsersPage = () => {
}
tableActions={<UsersActions setShowAddUser={setShowAddUser} t={t} />}
paginationArea={createCardProPagination({
preservePage: true,
showRange: false,
currentPage: usersData.activePage,
pageSize: usersData.pageSize,