@kep-platform/basic-component 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -226,7 +226,7 @@ export default function Table(_ref3) {
226
226
  } else {
227
227
  return element;
228
228
  }
229
- }))))), dataSource.length === 0 ? empty : /*#__PURE__*/React.createElement(TableContent, {
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
- }))), /*#__PURE__*/React.createElement("br", null), pagination !== false && dataSource.length !== 0 && /*#__PURE__*/React.createElement(Pagination, _extends({}, pagination, {
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 | keyof React.HtmlHTMLAttributes<HTMLDivElement>> & import("../Flex").FlexItemProps & React.HtmlHTMLAttributes<HTMLDivElement>, "ref"> & {
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.21",
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": "52099c3504fd710771a1c9c6718824f064c8329a",
77
+ "gitHead": "664f06c1285e22d9411eb86b566cb04adf649480",
78
78
  "dependencies": {
79
79
  "@ant-design/icons": "^5.3.7",
80
- "@kep-platform/hooks": "^0.0.21",
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"