@kep-platform/basic-component 0.0.21 → 0.0.22
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/Table/Table.js
CHANGED
|
@@ -226,7 +226,7 @@ export default function Table(_ref3) {
|
|
|
226
226
|
} else {
|
|
227
227
|
return element;
|
|
228
228
|
}
|
|
229
|
-
}))))),
|
|
229
|
+
}))))), /*#__PURE__*/React.createElement(TableContent, {
|
|
230
230
|
onScroll: function onScroll(e) {
|
|
231
231
|
var tableContainer = e.target;
|
|
232
232
|
if (boxShadowBox.current) {
|
|
@@ -249,7 +249,7 @@ export default function Table(_ref3) {
|
|
|
249
249
|
columns: headerColumns,
|
|
250
250
|
rowData: titleRowData,
|
|
251
251
|
isFlex: !scroll
|
|
252
|
-
}), /*#__PURE__*/React.createElement(TableBody, {
|
|
252
|
+
}), dataSource.length > 0 ? /*#__PURE__*/React.createElement(TableBody, {
|
|
253
253
|
direction: "column"
|
|
254
254
|
}, formatedDataSource.map(function (rowData, index) {
|
|
255
255
|
if (rowData) return /*#__PURE__*/React.createElement(TableBodyRow, {
|
|
@@ -260,7 +260,7 @@ export default function Table(_ref3) {
|
|
|
260
260
|
columns: columns,
|
|
261
261
|
isFlex: !scroll
|
|
262
262
|
}));else return undefined;
|
|
263
|
-
}))
|
|
263
|
+
})) : empty), pagination !== false && dataSource.length !== 0 && /*#__PURE__*/React.createElement(Pagination, _extends({}, pagination, {
|
|
264
264
|
total: (pagination === null || pagination === void 0 ? void 0 : pagination.total) || dataSource.length,
|
|
265
265
|
justifyContent: "right",
|
|
266
266
|
onChange: function onChange(current, pageSize) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
export declare const MainArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("../Flex").FlexItemProps
|
|
2
|
+
export declare const MainArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HtmlHTMLAttributes<HTMLDivElement> | keyof import("../Flex").FlexItemProps> & import("../Flex").FlexItemProps & React.HtmlHTMLAttributes<HTMLDivElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
4
4
|
}, never>> & string;
|
|
5
5
|
type MainPropertyProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kep-platform/basic-component",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "A react library developed with dumi",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"react-dom": "^18.0.0",
|
|
75
75
|
"stylelint": "^14.9.1"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "664f06c1285e22d9411eb86b566cb04adf649480",
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@ant-design/icons": "^5.3.7",
|
|
80
|
-
"@kep-platform/hooks": "^0.0.
|
|
80
|
+
"@kep-platform/hooks": "^0.0.22",
|
|
81
81
|
"color": "^4.2.3",
|
|
82
82
|
"rc-pagination": "^4.1.0",
|
|
83
83
|
"styled-components": "^6.1.11"
|