@quansitech/antd-admin 1.1.25 → 1.1.26

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.
@@ -36,7 +36,7 @@ export default function (props) {
36
36
  return _context2.abrupt("return");
37
37
  case 4:
38
38
  if (!props.request) {
39
- _context2.next = 28;
39
+ _context2.next = 29;
40
40
  break;
41
41
  }
42
42
  setLoading(true);
@@ -107,31 +107,35 @@ export default function (props) {
107
107
  _context2.next = 24;
108
108
  return (_tableContext$getActi = tableContext.getActionRef()) === null || _tableContext$getActi === void 0 ? void 0 : _tableContext$getActi.reload();
109
109
  case 24:
110
- _context2.prev = 24;
110
+ if (props.relateSelection) {
111
+ tableContext.getActionRef().clearSelected();
112
+ }
113
+ case 25:
114
+ _context2.prev = 25;
111
115
  setLoading(false);
112
- return _context2.finish(24);
113
- case 27:
114
- return _context2.abrupt("return");
116
+ return _context2.finish(25);
115
117
  case 28:
118
+ return _context2.abrupt("return");
119
+ case 29:
116
120
  if (!props.modal) {
117
- _context2.next = 34;
121
+ _context2.next = 35;
118
122
  break;
119
123
  }
120
124
  setLoading(true);
121
- _context2.next = 32;
125
+ _context2.next = 33;
122
126
  return modalShow(_objectSpread(_objectSpread({}, props.modal), {}, {
123
127
  contexts: {
124
128
  tableContext: tableContext
125
129
  }
126
130
  }));
127
- case 32:
131
+ case 33:
128
132
  setLoading(false);
129
133
  return _context2.abrupt("return");
130
- case 34:
134
+ case 35:
131
135
  case "end":
132
136
  return _context2.stop();
133
137
  }
134
- }, _callee, null, [[19,, 24, 27]]);
138
+ }, _callee, null, [[19,, 25, 28]]);
135
139
  }));
136
140
  return function onClick() {
137
141
  return _ref.apply(this, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quansitech/antd-admin",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"