Skip to content

Commit ed43dcc

Browse files
authored
Add support custom pager name
1 parent 5f9f923 commit ed43dcc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/services/MysqlNative.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ export class MysqlNative<Scheme> {
216216
} else rows = list.length
217217
last = last + rows
218218

219-
return { list, page: { last, more, rows } }
219+
const pagerName = ext.pagerName || 'page'
220+
221+
return { list, [pagerName]: { last, more, rows } }
220222
}
221223

222224
// 查询ID格式Sort列表

0 commit comments

Comments
 (0)