Interface IUseTableList<T, P, D>
interface IUseTableList<T, P, D> { request: { api: ((params: P) => Promise<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: ((params: P) => Promise<T>); handleParams?: ((params: P) => P); pageNumKey?: string; pageSizeKey?: string; params?: P; watcher?: Watcher<P>; } Type declaration
api: ((params: P) => Promise<T>)
- (params): Promise<T>
Returns Promise<T>
Optional
handleParams?: ((params: P) => P)
Optional
pageNumKey?: string
Optional
pageSizeKey?: string
Optional
params?: P
Optional
watcher?: Watcher<P>
Optional
response
response?: { append?: boolean; hasPage?: ((res: D) => boolean); listKey?: string; responseHandler?: ((res: D) => any); totalKey?: string; } Type declaration
Optional
append?: boolean
Optional
hasPage?: ((res: D) => boolean)
- (res): boolean
Returns boolean
Optional
listKey?: string
Optional
responseHandler?: ((res: D) => any)
Optional
totalKey?: string
请求方法