@guo514360255/antd-lib 1.4.5 → 1.4.7

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.
@@ -162,23 +162,24 @@ var CustomTable = /*#__PURE__*/forwardRef(function (props, ref) {
162
162
  return _ref3.apply(this, arguments);
163
163
  };
164
164
  }();
165
+ var openModal = function openModal() {
166
+ var _formModalRef$current;
167
+ var record = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
168
+ // @ts-ignore
169
+ (_formModalRef$current = formModalRef.current) === null || _formModalRef$current === void 0 || _formModalRef$current.open(handleModalData ? handleModalData(record) : record);
170
+ };
165
171
  useImperativeHandle(ref, function () {
166
172
  return {
167
173
  reload: function reload() {
168
174
  var _actionRef$current2;
169
175
  (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 || _actionRef$current2.reload();
170
- }
176
+ },
177
+ openModal: openModal
171
178
  };
172
179
  });
173
180
  var totalWidth = columns === null || columns === void 0 ? void 0 : columns.reduce(function (sum, col) {
174
181
  return sum + (col.width || 100);
175
182
  }, 0);
176
- var openModal = function openModal() {
177
- var _formModalRef$current;
178
- var record = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
179
- // @ts-ignore
180
- (_formModalRef$current = formModalRef.current) === null || _formModalRef$current === void 0 || _formModalRef$current.open(handleModalData ? handleModalData(record) : record);
181
- };
182
183
  var handleColumns = function handleColumns() {
183
184
  var _newColumns$;
184
185
  var newColumns = cloneDeep(columns);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guo514360255/antd-lib",
3
- "version": "1.4.5",
3
+ "version": "1.4.7",
4
4
  "description": "react design 5 lib",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",