@kne/table-page 0.1.0 → 0.1.1

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.js CHANGED
@@ -3401,6 +3401,11 @@ const TablePageInnerContent = withLocale(_ref => {
3401
3401
  dataFormat,
3402
3402
  pagination
3403
3403
  }), [data, fetchProps, requestParams, refresh, reload, loadMore, send, dataFormat, pagination]);
3404
+ const tableContext = _extends({}, columnRenderProps, {
3405
+ requestParams,
3406
+ fetchProps,
3407
+ data
3408
+ });
3404
3409
  const tableProps = _extends({}, props, {
3405
3410
  rowSelection,
3406
3411
  dataSource: formatData.list,
@@ -3410,11 +3415,8 @@ const TablePageInnerContent = withLocale(_ref => {
3410
3415
  [style$1['table-in-toolbar']]: hasToolbar
3411
3416
  }),
3412
3417
  columns: resolvedColumns,
3413
- columnRenderProps: _extends({}, columnRenderProps, {
3414
- requestParams,
3415
- fetchProps,
3416
- data
3417
- }),
3418
+ context: tableContext,
3419
+ columnRenderProps: tableContext,
3418
3420
  summary: typeof summary === 'function' ? function (pageData) {
3419
3421
  return summary(Object.assign({}, fetchContext, {
3420
3422
  pageData