Skip to content

Commit

Permalink
本地数据排序,异步加载数据,分页失效 (#689)
Browse files Browse the repository at this point in the history
* docs(notification): 插件调用与函数式调用

* fix(table): merged cells border style

* fix(table): pagination

Co-authored-by: sheepluo <[email protected]>
  • Loading branch information
chaishi and sheepluo authored Mar 31, 2022
1 parent b1a4301 commit 825bd09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/table/hooks/usePagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function usePagination(props: TdBaseTableProps, context: SetupCon

// 受控情况,只有 pagination.current 或者 pagination.pageSize 变化,才对数据进行排序
watch(
() => [pagination.value?.current, pagination.value?.pageSize, data, disableDataPage],
() => [pagination.value?.current, pagination.value?.pageSize, data.value.length, disableDataPage],
() => {
if (!pagination.value || !pagination.value.current) return;
updateDataSourceAndPaginate(pagination.value.current, pagination.value.pageSize);
Expand Down

0 comments on commit 825bd09

Please sign in to comment.