@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.cjs
CHANGED
|
@@ -21323,13 +21323,14 @@ function syncListTablePagination(params) {
|
|
|
21323
21323
|
scrollPageSize
|
|
21324
21324
|
},
|
|
21325
21325
|
onChange: (page, nextPageSize) => {
|
|
21326
|
-
store.dispatch(
|
|
21327
|
-
|
|
21328
|
-
|
|
21329
|
-
|
|
21330
|
-
|
|
21331
|
-
|
|
21332
|
-
|
|
21326
|
+
store.dispatch(
|
|
21327
|
+
setPaginationAction(
|
|
21328
|
+
updatePaginationState(store.getSnapshot().query.pagination, {
|
|
21329
|
+
currentPage: page,
|
|
21330
|
+
pageSize: nextPageSize
|
|
21331
|
+
})
|
|
21332
|
+
)
|
|
21333
|
+
);
|
|
21333
21334
|
if (options.pagination) {
|
|
21334
21335
|
options.pagination.onChange?.(page, nextPageSize);
|
|
21335
21336
|
}
|
|
@@ -21340,15 +21341,17 @@ function syncListTablePagination(params) {
|
|
|
21340
21341
|
}
|
|
21341
21342
|
},
|
|
21342
21343
|
onPageSizeChange: (page, nextPageSize) => {
|
|
21343
|
-
store.dispatch(
|
|
21344
|
-
|
|
21345
|
-
|
|
21346
|
-
|
|
21347
|
-
|
|
21348
|
-
|
|
21349
|
-
|
|
21344
|
+
store.dispatch(
|
|
21345
|
+
setPaginationAction(
|
|
21346
|
+
updatePaginationState(store.getSnapshot().query.pagination, {
|
|
21347
|
+
currentPage: page,
|
|
21348
|
+
pageSize: nextPageSize
|
|
21349
|
+
})
|
|
21350
|
+
)
|
|
21351
|
+
);
|
|
21350
21352
|
if (options.pagination) {
|
|
21351
21353
|
options.pagination.onShowSizeChange?.(page, nextPageSize);
|
|
21354
|
+
options.pagination.onChange?.(page, nextPageSize);
|
|
21352
21355
|
}
|
|
21353
21356
|
if (options.query?.onChange) {
|
|
21354
21357
|
emitQueryChange("paginate");
|