web-component-gallery 2.3.17 → 2.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,7 +60,7 @@
60
60
  })
61
61
  }
62
62
  }"
63
- @pageSizeChange="(pagination) => (listPaginationB = pagination, onListPageBHandler())"
63
+ @pageSizeChange="onListPageBHandler"
64
64
  >
65
65
  <span class="Table__Name" slot="ATableTitle">已选{{title}}列表</span>
66
66
  <template #action="{customProps, index}">
@@ -216,12 +216,12 @@ export default {
216
216
  },
217
217
 
218
218
  // 获取右侧表格数据(从已选记录中分页)
219
- onListPageBHandler() {
219
+ onListPageBHandler(paginationB) {
220
220
  try {
221
221
  const chunks = chunkArray(this.selectedRecordsB, this.listPaginationB.size)
222
222
  this.listPaginationB = {
223
223
  ...this.listPaginationB,
224
- current: chunks.length,
224
+ ...(paginationB || { current: chunks.length }),
225
225
  total: this.selectedRecordsB.length
226
226
  }
227
227
  this.listDatasB = chunks[this.listPaginationB.current - 1] || []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-component-gallery",
3
- "version": "2.3.17",
3
+ "version": "2.3.18",
4
4
  "description": "基础vue、antdvue、less实现的私有组件库",
5
5
  "main": "dist/index.umd.js",
6
6
  "files": [