mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-04 21:19:27 +08:00
* refactor: 表格拆分模块化 * refactor: 表格拆分模块化 * refactor: code splitting of the table component (#120) * missing TableIndex * refactor: 表格拆分模块化 * code format Co-authored-by: chenos <chenlinxh@gmail.com>
11 lines
241 B
TypeScript
11 lines
241 B
TypeScript
import { useTable } from './useTable';
|
|
|
|
export const useTotal = () => {
|
|
const {
|
|
field,
|
|
service,
|
|
props: { clientSidePagination },
|
|
} = useTable();
|
|
return clientSidePagination ? field?.value?.length : service?.data?.total;
|
|
};
|