feat(projects): add table showTotal options

This commit is contained in:
paynezhuang
2024-04-25 22:46:21 +08:00
parent ec5b1c3f84
commit 3e61eab498
7 changed files with 28 additions and 4 deletions

View File

@ -57,6 +57,12 @@ export type TableConfig<A extends ApiFn, T, C> = {
* @default true
*/
immediate?: boolean;
/**
* whether to display the total items count
*
* @default false
*/
showTotal?: boolean;
};
export default function useHookTable<A extends ApiFn, T, C>(config: TableConfig<A, T, C>) {