Interface IUseTableList<T, P, D>
interface IUseTableList<T, P, D> { request: { api: RequestAPI<P, T>; handleParams?: ((params: P) => P); pageNumKey?: string; pageSizeKey?: string; params?: P; watcher?: Watcher<P>; }; response?: { append?: boolean; hasPage?: ((res: D) => boolean); listKey?: string; responseHandler?: ((res: D) => any); totalKey?: string; }; } Properties
request
request: { api: RequestAPI<P, T>; handleParams?: ((params: P) => P); pageNumKey?: string; pageSizeKey?: string; params?: P; watcher?: Watcher<P>; } Type declaration
OptionalhandleParams?: ((params: P) => P)
OptionalpageNumKey?: string
OptionalpageSizeKey?: string
Optionalparams?: P
Optionalwatcher?: Watcher<P>
Optionalresponse
response?: { append?: boolean; hasPage?: ((res: D) => boolean); listKey?: string; responseHandler?: ((res: D) => any); totalKey?: string; } Type declaration
Optionalappend?: boolean
OptionalhasPage?: ((res: D) => boolean)
- (res): boolean
Returns boolean
OptionallistKey?: string
OptionalresponseHandler?: ((res: D) => any)
OptionaltotalKey?: string
请求方法