zhou zhou
15 小时以前 fec285d150b377d004e47f0973d298b92fe4c711
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const tableConfig = {
  // 响应数据字段映射配置,系统会从接口返回数据中按顺序查找这些字段
  // 列表数据
  recordFields: ['list', 'data', 'records', 'items', 'result', 'rows'],
  // 总条数
  totalFields: ['total', 'count'],
  // 当前页码
  currentFields: ['current', 'page', 'pageNum'],
  // 每页大小
  sizeFields: ['size', 'pageSize', 'limit'],
  // 请求参数映射配置,前端发送请求时使用的分页参数名
  // useTable 组合式函数传递分页参数的时候 用 current 跟 size
  paginationKey: {
    // 当前页码
    current: 'current',
    // 每页大小
    size: 'size'
  }
}
export { tableConfig }