@fle-ui/plus-table 1.2.28-beta.0 → 1.2.28-beta.1

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/es/index.js CHANGED
@@ -264,7 +264,7 @@ function PlusTable(props, ref) {
264
264
  var propsRequest = /*#__PURE__*/function () {
265
265
  var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(params, sort, filter) {
266
266
  var _searchRef$current5, _drawFormRef$current5;
267
- var res1, res2, res;
267
+ var res1, res2, key, res;
268
268
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
269
269
  while (1) switch (_context8.prev = _context8.next) {
270
270
  case 0:
@@ -276,24 +276,32 @@ function PlusTable(props, ref) {
276
276
  return drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current5 = drawFormRef.current) === null || _drawFormRef$current5 === void 0 ? void 0 : _drawFormRef$current5.getFieldsValue();
277
277
  case 5:
278
278
  res2 = _context8.sent;
279
+ for (key in res2) {
280
+ if (Object.hasOwn(res2, key)) {
281
+ if (!res2[key]) {
282
+ res1[key] = undefined;
283
+ params[key] = undefined;
284
+ }
285
+ }
286
+ }
279
287
  if (!request) {
280
- _context8.next = 12;
288
+ _context8.next = 13;
281
289
  break;
282
290
  }
283
- _context8.next = 9;
291
+ _context8.next = 10;
284
292
  return request(_objectSpread(_objectSpread(_objectSpread({}, params), dealFetchParams(_objectSpread(_objectSpread(_objectSpread({}, res1), res2), params))), {}, {
285
293
  showFull: showFull
286
294
  }), sort, filter);
287
- case 9:
295
+ case 10:
288
296
  _context8.t0 = _context8.sent;
289
- _context8.next = 13;
297
+ _context8.next = 14;
290
298
  break;
291
- case 12:
292
- _context8.t0 = {};
293
299
  case 13:
300
+ _context8.t0 = {};
301
+ case 14:
294
302
  res = _context8.t0;
295
303
  return _context8.abrupt("return", res);
296
- case 15:
304
+ case 16:
297
305
  case "end":
298
306
  return _context8.stop();
299
307
  }
package/lib/index.js CHANGED
@@ -268,7 +268,7 @@ function PlusTable(props, ref) {
268
268
  var propsRequest = /*#__PURE__*/function () {
269
269
  var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(params, sort, filter) {
270
270
  var _searchRef$current5, _drawFormRef$current5;
271
- var res1, res2, res;
271
+ var res1, res2, key, res;
272
272
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
273
273
  while (1) switch (_context8.prev = _context8.next) {
274
274
  case 0:
@@ -280,24 +280,32 @@ function PlusTable(props, ref) {
280
280
  return drawFormRef === null || drawFormRef === void 0 ? void 0 : (_drawFormRef$current5 = drawFormRef.current) === null || _drawFormRef$current5 === void 0 ? void 0 : _drawFormRef$current5.getFieldsValue();
281
281
  case 5:
282
282
  res2 = _context8.sent;
283
+ for (key in res2) {
284
+ if (Object.hasOwn(res2, key)) {
285
+ if (!res2[key]) {
286
+ res1[key] = undefined;
287
+ params[key] = undefined;
288
+ }
289
+ }
290
+ }
283
291
  if (!request) {
284
- _context8.next = 12;
292
+ _context8.next = 13;
285
293
  break;
286
294
  }
287
- _context8.next = 9;
295
+ _context8.next = 10;
288
296
  return request(_objectSpread(_objectSpread(_objectSpread({}, params), dealFetchParams(_objectSpread(_objectSpread(_objectSpread({}, res1), res2), params))), {}, {
289
297
  showFull: showFull
290
298
  }), sort, filter);
291
- case 9:
299
+ case 10:
292
300
  _context8.t0 = _context8.sent;
293
- _context8.next = 13;
301
+ _context8.next = 14;
294
302
  break;
295
- case 12:
296
- _context8.t0 = {};
297
303
  case 13:
304
+ _context8.t0 = {};
305
+ case 14:
298
306
  res = _context8.t0;
299
307
  return _context8.abrupt("return", res);
300
- case 15:
308
+ case 16:
301
309
  case "end":
302
310
  return _context8.stop();
303
311
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fle-ui/plus-table",
3
- "version": "1.2.28-beta.0",
3
+ "version": "1.2.28-beta.1",
4
4
  "description": "@fle-ui/plus-table",
5
5
  "keywords": [
6
6
  "fle-ui",
@@ -46,5 +46,5 @@
46
46
  "@ant-design/pro-components": "^2.7.0",
47
47
  "dayjs": "^1.11.10"
48
48
  },
49
- "gitHead": "902b47509c9d8063678bfbdf0942163d569cee75"
49
+ "gitHead": "72f910ee02d932c3c51b7d4c1d9e7fed53bea777"
50
50
  }