wargerm 0.7.61 → 0.7.63

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/index.esm.js CHANGED
@@ -6502,18 +6502,21 @@ var ModalForm = function ModalForm(props, ref) {
6502
6502
  while (1) switch (_context2.prev = _context2.next) {
6503
6503
  case 0:
6504
6504
  setConfirmLoading(true);
6505
- res = {};
6506
6505
  if (!submitMethod) {
6507
6506
  _context2.next = 7;
6508
6507
  break;
6509
6508
  }
6510
- _context2.next = 5;
6509
+ _context2.next = 4;
6511
6510
  return submitMethod(values, function () {
6512
6511
  setOpen(false);
6513
6512
  onCancel && onCancel();
6514
6513
  });
6515
- case 5:
6514
+ case 4:
6516
6515
  res = _context2.sent;
6516
+ if (res.code == 200) {
6517
+ setOpen(false);
6518
+ onCancel && onCancel();
6519
+ }
6517
6520
  setConfirmLoading(false);
6518
6521
  case 7:
6519
6522
  case "end":
@@ -6842,6 +6845,13 @@ var TabelCard = function TabelCard(props, ref) {
6842
6845
  };
6843
6846
  return [].concat(_toConsumableArray(tableAction1.map(function (item, i) {
6844
6847
  var _actionHandler$item$t4;
6848
+ if (item.type == 'custom') {
6849
+ actionConfig[item.type] = {
6850
+ title: item.title,
6851
+ key: item.key,
6852
+ icon: item.icon
6853
+ };
6854
+ }
6845
6855
  var btn = actionConfig[item.type];
6846
6856
  if (btn) {
6847
6857
  return /*#__PURE__*/React.createElement(Tooltip, {
@@ -7201,10 +7211,10 @@ var TabelCard = function TabelCard(props, ref) {
7201
7211
  return obj;
7202
7212
  }))),
7203
7213
  search: false,
7204
- pagination: _objectSpread2({
7214
+ pagination: pagination !== null && pagination !== void 0 ? pagination : {
7205
7215
  showSizeChanger: true,
7206
- pageSize: 10
7207
- }, pagination || {})
7216
+ defaultPageSize: 10
7217
+ }
7208
7218
  }, extraProps))));
7209
7219
  };
7210
7220
  var index$3 = /*#__PURE__*/React.forwardRef(TabelCard);
package/dist/index.js CHANGED
@@ -6546,18 +6546,21 @@ var ModalForm = function ModalForm(props, ref) {
6546
6546
  while (1) switch (_context2.prev = _context2.next) {
6547
6547
  case 0:
6548
6548
  setConfirmLoading(true);
6549
- res = {};
6550
6549
  if (!submitMethod) {
6551
6550
  _context2.next = 7;
6552
6551
  break;
6553
6552
  }
6554
- _context2.next = 5;
6553
+ _context2.next = 4;
6555
6554
  return submitMethod(values, function () {
6556
6555
  setOpen(false);
6557
6556
  onCancel && onCancel();
6558
6557
  });
6559
- case 5:
6558
+ case 4:
6560
6559
  res = _context2.sent;
6560
+ if (res.code == 200) {
6561
+ setOpen(false);
6562
+ onCancel && onCancel();
6563
+ }
6561
6564
  setConfirmLoading(false);
6562
6565
  case 7:
6563
6566
  case "end":
@@ -6886,6 +6889,13 @@ var TabelCard = function TabelCard(props, ref) {
6886
6889
  };
6887
6890
  return [].concat(_toConsumableArray(tableAction1.map(function (item, i) {
6888
6891
  var _actionHandler$item$t4;
6892
+ if (item.type == 'custom') {
6893
+ actionConfig[item.type] = {
6894
+ title: item.title,
6895
+ key: item.key,
6896
+ icon: item.icon
6897
+ };
6898
+ }
6889
6899
  var btn = actionConfig[item.type];
6890
6900
  if (btn) {
6891
6901
  return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
@@ -7245,10 +7255,10 @@ var TabelCard = function TabelCard(props, ref) {
7245
7255
  return obj;
7246
7256
  }))),
7247
7257
  search: false,
7248
- pagination: _objectSpread2({
7258
+ pagination: pagination !== null && pagination !== void 0 ? pagination : {
7249
7259
  showSizeChanger: true,
7250
- pageSize: 10
7251
- }, pagination || {})
7260
+ defaultPageSize: 10
7261
+ }
7252
7262
  }, extraProps))));
7253
7263
  };
7254
7264
  var index$3 = /*#__PURE__*/React__default['default'].forwardRef(TabelCard);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "wargerm",
4
- "version": "0.7.61",
4
+ "version": "0.7.63",
5
5
  "scripts": {
6
6
  "dev": "dumi dev",
7
7
  "docs:build": "dumi build",