@canvas-components/list-table 0.3.4 → 0.3.5
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.
- package/dist/index.cjs +17 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21321,13 +21321,14 @@ function syncListTablePagination(params) {
|
|
|
21321
21321
|
scrollPageSize
|
|
21322
21322
|
},
|
|
21323
21323
|
onChange: (page, nextPageSize) => {
|
|
21324
|
-
store.dispatch(
|
|
21325
|
-
|
|
21326
|
-
|
|
21327
|
-
|
|
21328
|
-
|
|
21329
|
-
|
|
21330
|
-
|
|
21324
|
+
store.dispatch(
|
|
21325
|
+
setPaginationAction(
|
|
21326
|
+
updatePaginationState(store.getSnapshot().query.pagination, {
|
|
21327
|
+
currentPage: page,
|
|
21328
|
+
pageSize: nextPageSize
|
|
21329
|
+
})
|
|
21330
|
+
)
|
|
21331
|
+
);
|
|
21331
21332
|
if (options.pagination) {
|
|
21332
21333
|
options.pagination.onChange?.(page, nextPageSize);
|
|
21333
21334
|
}
|
|
@@ -21338,15 +21339,17 @@ function syncListTablePagination(params) {
|
|
|
21338
21339
|
}
|
|
21339
21340
|
},
|
|
21340
21341
|
onPageSizeChange: (page, nextPageSize) => {
|
|
21341
|
-
store.dispatch(
|
|
21342
|
-
|
|
21343
|
-
|
|
21344
|
-
|
|
21345
|
-
|
|
21346
|
-
|
|
21347
|
-
|
|
21342
|
+
store.dispatch(
|
|
21343
|
+
setPaginationAction(
|
|
21344
|
+
updatePaginationState(store.getSnapshot().query.pagination, {
|
|
21345
|
+
currentPage: page,
|
|
21346
|
+
pageSize: nextPageSize
|
|
21347
|
+
})
|
|
21348
|
+
)
|
|
21349
|
+
);
|
|
21348
21350
|
if (options.pagination) {
|
|
21349
21351
|
options.pagination.onShowSizeChange?.(page, nextPageSize);
|
|
21352
|
+
options.pagination.onChange?.(page, nextPageSize);
|
|
21350
21353
|
}
|
|
21351
21354
|
if (options.query?.onChange) {
|
|
21352
21355
|
emitQueryChange("paginate");
|