@guo514360255/antd-lib 1.4.7 → 1.4.8

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.
@@ -21,6 +21,7 @@ import React, { forwardRef, useEffect, useImperativeHandle, useRef, useState } f
21
21
  import CustomDetailModal from "../CustomDetailModal";
22
22
  import "./index.less";
23
23
  var CustomTable = /*#__PURE__*/forwardRef(function (props, ref) {
24
+ var _columns$filter;
24
25
  var _props$isIndex = props.isIndex,
25
26
  isIndex = _props$isIndex === void 0 ? true : _props$isIndex,
26
27
  _props$isDelete = props.isDelete,
@@ -177,7 +178,9 @@ var CustomTable = /*#__PURE__*/forwardRef(function (props, ref) {
177
178
  openModal: openModal
178
179
  };
179
180
  });
180
- var totalWidth = columns === null || columns === void 0 ? void 0 : columns.reduce(function (sum, col) {
181
+ var totalWidth = columns === null || columns === void 0 || (_columns$filter = columns.filter(function (item) {
182
+ return !item.hideInTable;
183
+ })) === null || _columns$filter === void 0 ? void 0 : _columns$filter.reduce(function (sum, col) {
181
184
  return sum + (col.width || 100);
182
185
  }, 0);
183
186
  var handleColumns = function handleColumns() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guo514360255/antd-lib",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "description": "react design 5 lib",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",