@guo514360255/antd-lib 1.4.6 → 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,7 +162,7 @@ var CustomTable = /*#__PURE__*/forwardRef(function (props, ref) {
162
162
  return _ref3.apply(this, arguments);
163
163
  };
164
164
  }();
165
- var _openModal = function openModal() {
165
+ var openModal = function openModal() {
166
166
  var _formModalRef$current;
167
167
  var record = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
168
168
  // @ts-ignore
@@ -174,10 +174,7 @@ var CustomTable = /*#__PURE__*/forwardRef(function (props, ref) {
174
174
  var _actionRef$current2;
175
175
  (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 || _actionRef$current2.reload();
176
176
  },
177
- openModal: function openModal() {
178
- var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
179
- _openModal(data);
180
- }
177
+ openModal: openModal
181
178
  };
182
179
  });
183
180
  var totalWidth = columns === null || columns === void 0 ? void 0 : columns.reduce(function (sum, col) {
@@ -249,7 +246,7 @@ var CustomTable = /*#__PURE__*/forwardRef(function (props, ref) {
249
246
  }, "\u8BE6\u60C5"), isUpdate && /*#__PURE__*/React.createElement(Button, {
250
247
  type: "link",
251
248
  onClick: function onClick() {
252
- return _openModal(record);
249
+ return openModal(record);
253
250
  }
254
251
  }, "\u7F16\u8F91"), isDelete && /*#__PURE__*/React.createElement(Popconfirm, {
255
252
  title: "\u786E\u5B9A\u5220\u9664\u5F53\u524D\u6570\u636E\uFF1F",
@@ -392,7 +389,7 @@ var CustomTable = /*#__PURE__*/forwardRef(function (props, ref) {
392
389
  // @ts-ignore
393
390
  ,
394
391
  onClick: function onClick() {
395
- return _openModal({});
392
+ return openModal({});
396
393
  }
397
394
  }, createText || '创建')] : []));
398
395
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guo514360255/antd-lib",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "react design 5 lib",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",