@kep-platform/basic-component 0.1.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Table/Table.d.ts +2 -1
- package/dist/Table/Table.js +4 -2
- package/package.json +3 -3
package/dist/Table/Table.d.ts
CHANGED
@@ -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 {};
|
package/dist/Table/Table.js
CHANGED
@@ -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
|
3
|
+
"version": "0.2.1",
|
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
|
50
|
+
"@kep-platform/hooks": "^0.2.1",
|
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": "
|
90
|
+
"gitHead": "e421f2be24cf17cde085ef02116c37be24976822"
|
91
91
|
}
|