feat(hooks): 调整默认分页大小为10
- 将 useListData hook 中的默认分页大小从 20 改为 10 - 保持其他分页配置不变(当前页为1,总数为0) - 此更改影响所有使用该 hook 的列表数据加载逻辑dev
parent
ef13f6931b
commit
a8d3336851
|
|
@ -108,7 +108,7 @@ export default function useListData(api, options = {}) {
|
|||
const defaultSearchForm = options.defaultSearchForm ?? {};
|
||||
const clearSelection = options.clearSelection ?? true;
|
||||
const isStorageQueryCriteria = options.isStorageQueryCriteria ?? true;
|
||||
const defaultPagination = { currentPage: 1, pageSize: 20, total: 0 };
|
||||
const defaultPagination = { currentPage: 1, pageSize: 10, total: 0 };
|
||||
const list = ref([]);
|
||||
const queryCriteria = getQueryCriteria();
|
||||
const pagination = ref(queryCriteria.pagination || defaultPagination);
|
||||
|
|
|
|||
Loading…
Reference in New Issue