@kep-platform/basic-component 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,5 +17,5 @@ export declare function Popup(props: {
17
17
  trigger?: TriggerType;
18
18
  content?: ReactNode;
19
19
  onVisibleChange?: (visible: boolean) => void;
20
- }): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
20
+ }): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
21
21
  export default PopupBox;
@@ -19,6 +19,7 @@ export type TableProps = {
19
19
  empty?: ReactNode;
20
20
  rowSelection?: RowSelection;
21
21
  multiple?: boolean;
22
+ tableContentRef?: React.RefObject<HTMLDivElement>;
22
23
  };
23
- export default function Table({ columns, dataSource, rowKey, scroll, onChange, headerRender, pagination: outerPagination, empty, rowSelection, multiple, }: TableProps): React.JSX.Element;
24
+ export default function Table({ columns, dataSource, rowKey, scroll, onChange, headerRender, pagination: outerPagination, empty, rowSelection, multiple, tableContentRef, }: TableProps): React.JSX.Element;
24
25
  export {};
@@ -164,7 +164,8 @@ export default function Table(_ref3) {
164
164
  _ref3$empty = _ref3.empty,
165
165
  empty = _ref3$empty === void 0 ? /*#__PURE__*/React.createElement(React.Fragment, null) : _ref3$empty,
166
166
  rowSelection = _ref3.rowSelection,
167
- multiple = _ref3.multiple;
167
+ multiple = _ref3.multiple,
168
+ tableContentRef = _ref3.tableContentRef;
168
169
  var _useState = useState(null),
169
170
  _useState2 = _slicedToArray(_useState, 2),
170
171
  sorterController = _useState2[0],
@@ -356,7 +357,8 @@ export default function Table(_ref3) {
356
357
  }
357
358
  },
358
359
  scroll: scroll,
359
- isFlex: isFlex
360
+ isFlex: isFlex,
361
+ ref: tableContentRef
360
362
  }, !isFlex && /*#__PURE__*/React.createElement(BoxShadowBox, {
361
363
  ref: boxShadowBox,
362
364
  width: "10px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kep-platform/basic-component",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@ant-design/icons": "^5.3.7",
50
- "@kep-platform/hooks": "^0.1.0",
50
+ "@kep-platform/hooks": "^0.2.0",
51
51
  "color": "^4.2.3",
52
52
  "rc-pagination": "^4.1.0"
53
53
  },
@@ -87,5 +87,5 @@
87
87
  "authors": [
88
88
  "less-step-jss 1599925910@qq.com"
89
89
  ],
90
- "gitHead": "8d6892601e5d0b0c30ddf1c3b7944324c647b8e5"
90
+ "gitHead": "54a6f029d61a1bd43f18e5d9021193c18307cb4b"
91
91
  }