Commit 13f5fdf485ceceb24ffd577f316eaafd04cb8578

Authored by Aaron
1 parent edd17b99
Exists in master and in 1 other branch legacy

Scheme组件分页字段支持自定义别名

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
packages/scheme/index.vue
... ... @@ -280,11 +280,12 @@ export default {
280 280 methods: {
281 281 // 查询数据
282 282 async handleSearch(value) {
  283 + const { currentPageAlias = 'currentPage', pageSizeAlias = 'pageSize' } = this.option || {};
283 284 const param = {
284 285 ...this.searchModel,
285 286 ...value,
286   - currentPage: this.currentPage,
287   - pageSize: this.pageSize
  287 + [currentPageAlias]: this.currentPage,
  288 + [pageSizeAlias]: this.pageSize
288 289 };
289 290 this.doSearch(param);
290 291 },
... ...