@hw-component/table 0.0.5-beta-v5 → 0.0.5-beta-v6

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.
@@ -15,5 +15,5 @@ interface HTableBodyProps extends Omit<ProTableProps<any, any>, "dataSource" | "
15
15
  rowSelection?: HRowSelection | false;
16
16
  affixProps?: AffixProps | false;
17
17
  }
18
- declare const _default: ({ configData, pagination, onPageChange, rowSelection, rowKey, emptyRender, errorRender, tableStyle, paginationStyle, headerTitle, options, actionRender, ...props }: HTableBodyProps) => JSX.Element;
18
+ declare const _default: ({ configData, pagination, onPageChange, rowSelection, rowKey, emptyRender, errorRender, tableStyle, paginationStyle, headerTitle, options, actionRender, affixProps, ...props }: HTableBodyProps) => JSX.Element;
19
19
  export default _default;
@@ -21,7 +21,7 @@ import HTablePagination from '../HTablePagination/index.js';
21
21
  import { useClassName } from '../hooks/index.js';
22
22
  import AlertMsg from './AlertMsg.js';
23
23
 
24
- var _excluded = ["configData", "pagination", "onPageChange", "rowSelection", "rowKey", "emptyRender", "errorRender", "tableStyle", "paginationStyle", "headerTitle", "options", "actionRender"];
24
+ var _excluded = ["configData", "pagination", "onPageChange", "rowSelection", "rowKey", "emptyRender", "errorRender", "tableStyle", "paginationStyle", "headerTitle", "options", "actionRender", "affixProps"];
25
25
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
26
26
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
27
27
  var defaultRender = function defaultRender() {
@@ -50,6 +50,7 @@ var Body = (function (_ref) {
50
50
  headerTitle = _ref.headerTitle,
51
51
  options = _ref.options,
52
52
  actionRender = _ref.actionRender,
53
+ affixProps = _ref.affixProps,
53
54
  props = _objectWithoutProperties(_ref, _excluded);
54
55
  var selectedRowKeys = rowSelection.selectedRowKeys;
55
56
  var _useHTableContext = useHTableContext(),
@@ -131,7 +132,8 @@ var Body = (function (_ref) {
131
132
  pagination: false
132
133
  })), pagination !== false && jsx(HTablePagination, _objectSpread({
133
134
  onPageChange: onPageChange,
134
- paginationStyle: paginationStyle
135
+ paginationStyle: paginationStyle,
136
+ affixProps: affixProps
135
137
  }, pagination))]
136
138
  })
137
139
  });
@@ -15,5 +15,5 @@ interface HTableBodyProps extends Omit<ProTableProps<any, any>, "dataSource" | "
15
15
  rowSelection?: HRowSelection | false;
16
16
  affixProps?: AffixProps | false;
17
17
  }
18
- declare const _default: ({ configData, pagination, onPageChange, rowSelection, rowKey, emptyRender, errorRender, tableStyle, paginationStyle, headerTitle, options, actionRender, ...props }: HTableBodyProps) => JSX.Element;
18
+ declare const _default: ({ configData, pagination, onPageChange, rowSelection, rowKey, emptyRender, errorRender, tableStyle, paginationStyle, headerTitle, options, actionRender, affixProps, ...props }: HTableBodyProps) => JSX.Element;
19
19
  export default _default;
@@ -24,7 +24,7 @@ var index$1 = require('../HTablePagination/index.js');
24
24
  var index = require('../hooks/index.js');
25
25
  var AlertMsg = require('./AlertMsg.js');
26
26
 
27
- var _excluded = ["configData", "pagination", "onPageChange", "rowSelection", "rowKey", "emptyRender", "errorRender", "tableStyle", "paginationStyle", "headerTitle", "options", "actionRender"];
27
+ var _excluded = ["configData", "pagination", "onPageChange", "rowSelection", "rowKey", "emptyRender", "errorRender", "tableStyle", "paginationStyle", "headerTitle", "options", "actionRender", "affixProps"];
28
28
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
29
29
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
30
30
  var defaultRender = function defaultRender() {
@@ -53,6 +53,7 @@ var Body = (function (_ref) {
53
53
  headerTitle = _ref.headerTitle,
54
54
  options = _ref.options,
55
55
  actionRender = _ref.actionRender,
56
+ affixProps = _ref.affixProps,
56
57
  props = _objectWithoutProperties(_ref, _excluded);
57
58
  var selectedRowKeys = rowSelection.selectedRowKeys;
58
59
  var _useHTableContext = context.useHTableContext(),
@@ -134,7 +135,8 @@ var Body = (function (_ref) {
134
135
  pagination: false
135
136
  })), pagination !== false && jsxRuntime.jsx(index$1.default, _objectSpread({
136
137
  onPageChange: onPageChange,
137
- paginationStyle: paginationStyle
138
+ paginationStyle: paginationStyle,
139
+ affixProps: affixProps
138
140
  }, pagination))]
139
141
  })
140
142
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "0.0.5-beta-v5",
3
+ "version": "0.0.5-beta-v6",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -49,6 +49,7 @@ export default ({
49
49
  headerTitle,
50
50
  options,
51
51
  actionRender,
52
+ affixProps,
52
53
  ...props
53
54
  }: HTableBodyProps) => {
54
55
  // @ts-ignore
@@ -133,6 +134,7 @@ export default ({
133
134
  <HTablePagination
134
135
  onPageChange={onPageChange}
135
136
  paginationStyle={paginationStyle}
137
+ affixProps={affixProps}
136
138
  {...pagination}
137
139
  />
138
140
  )}