Skip to content

Commit

Permalink
Add support custom pager name
Browse files Browse the repository at this point in the history
  • Loading branch information
adaex authored Jul 7, 2021
1 parent 5f9f923 commit ed43dcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/MysqlNative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ export class MysqlNative<Scheme> {
} else rows = list.length
last = last + rows

return { list, page: { last, more, rows } }
const pagerName = ext.pagerName || 'page'

return { list, [pagerName]: { last, more, rows } }
}

// 查询ID格式Sort列表
Expand Down

0 comments on commit ed43dcc

Please sign in to comment.