跳转到内容

usePagination / PaginationResponse

接口:PaginationResponse ​

usePagination的分页规范

类型声明 ​

typescript
export interface PaginationResponse<TResponse = any> {
  list: TResponse[]

  total: number
}

泛型 ​

名称默认值继承可选描述
TResponseany是数据类型

属性 ​

list ​

  • 必填 - TResponse[]

列表数据

total ​

  • 必填 - number

列表总数