- useTableList<T, P, D>(config): {
handleCurrentChange: ((pageNum) => Promise<void>);
handleReset: (() => Promise<void>);
handleSearch: ((pageNum?) => Promise<void>);
handleSizeChange: ((pageSize) => Promise<void>);
isLastPage: Ref<boolean>;
params: Ref<P>;
tableData: Ref<UnwrapRefSimple<T>[]>;
tableLoading: Ref<boolean>;
tableTotal: Ref<number>;
} Type Parameters
- T = any
- P extends object = any
- D = any
Returns {
handleCurrentChange: ((pageNum) => Promise<void>);
handleReset: (() => Promise<void>);
handleSearch: ((pageNum?) => Promise<void>);
handleSizeChange: ((pageSize) => Promise<void>);
isLastPage: Ref<boolean>;
params: Ref<P>;
tableData: Ref<UnwrapRefSimple<T>[]>;
tableLoading: Ref<boolean>;
tableTotal: Ref<number>;
}
handleCurrentChange: ((pageNum) => Promise<void>)
- (pageNum): Promise<void>
Returns Promise<void>
handleReset: (() => Promise<void>)
- (): Promise<void>
Returns Promise<void>
handleSearch: ((pageNum?) => Promise<void>)
- (pageNum?): Promise<void>
Returns Promise<void>
handleSizeChange: ((pageSize) => Promise<void>)
- (pageSize): Promise<void>
Returns Promise<void>
isLastPage: Ref<boolean>
params: Ref<P>
tableData: Ref<UnwrapRefSimple<T>[]>
tableLoading: Ref<boolean>
tableTotal: Ref<number>
表格分页数据请求