wargerm 0.7.55 → 0.7.57

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
@@ -3176,6 +3176,7 @@ var WSelect = function WSelect(props) {
3176
3176
  }, [JSON.stringify(params || {})]);
3177
3177
  return /*#__PURE__*/React.createElement(Select, _objectSpread2({
3178
3178
  showSearch: true,
3179
+ allowClear: true,
3179
3180
  filterOption: function filterOption(input, option) {
3180
3181
  var _ref3;
3181
3182
 
@@ -4098,12 +4099,12 @@ var WForm = function WForm(props, ref) {
4098
4099
  filterFormColumns.forEach(function (c) {
4099
4100
  if (c.search && c.search.transform) {
4100
4101
  var transformObj = c.search.transform(searchForm[c.dataIndex]);
4101
- searchForm = _objectSpread2(_objectSpread2({}, searchForm), transformObj);
4102
4102
 
4103
- if (!transformObj[c.dataIndex]) {
4103
+ if (transformObj[c.dataIndex] == undefined) {
4104
4104
  delete searchForm[c.dataIndex];
4105
4105
  }
4106
4106
 
4107
+ searchForm = _objectSpread2(_objectSpread2({}, searchForm), transformObj);
4107
4108
  return false;
4108
4109
  }
4109
4110
 
@@ -7433,24 +7434,24 @@ var TabelCard = function TabelCard(props, ref) {
7433
7434
  while (1) {
7434
7435
  switch (_context6.prev = _context6.next) {
7435
7436
  case 0:
7436
- e.stopPropagation();
7437
+ // e.stopPropagation();
7437
7438
  info = null;
7438
7439
 
7439
7440
  if (!item.fetchInfo) {
7440
- _context6.next = 6;
7441
+ _context6.next = 5;
7441
7442
  break;
7442
7443
  }
7443
7444
 
7444
- _context6.next = 5;
7445
+ _context6.next = 4;
7445
7446
  return item.fetchInfo(record);
7446
7447
 
7447
- case 5:
7448
+ case 4:
7448
7449
  info = _context6.sent;
7449
7450
 
7450
- case 6:
7451
+ case 5:
7451
7452
  (_actionHandler$item$t = actionHandler[item.type]) === null || _actionHandler$item$t === void 0 ? void 0 : _actionHandler$item$t.call(actionHandler, item, info || record, index);
7452
7453
 
7453
- case 7:
7454
+ case 6:
7454
7455
  case "end":
7455
7456
  return _context6.stop();
7456
7457
  }
@@ -7717,7 +7718,11 @@ var TabelCard = function TabelCard(props, ref) {
7717
7718
 
7718
7719
  return submitMethod;
7719
7720
  }(),
7720
- search: modalFormSearch
7721
+ search: _objectSpread2({
7722
+ hideSubmit: true,
7723
+ labelWidth: 110,
7724
+ span: 24
7725
+ }, modalFormSearch)
7721
7726
  }, modalConfig), {}, {
7722
7727
  onFormChange: onFormChange,
7723
7728
  extraColumns: (extraColumns || []).filter(function (item) {
package/dist/index.js CHANGED
@@ -3220,6 +3220,7 @@ var WSelect = function WSelect(props) {
3220
3220
  }, [JSON.stringify(params || {})]);
3221
3221
  return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
3222
3222
  showSearch: true,
3223
+ allowClear: true,
3223
3224
  filterOption: function filterOption(input, option) {
3224
3225
  var _ref3;
3225
3226
 
@@ -4142,12 +4143,12 @@ var WForm = function WForm(props, ref) {
4142
4143
  filterFormColumns.forEach(function (c) {
4143
4144
  if (c.search && c.search.transform) {
4144
4145
  var transformObj = c.search.transform(searchForm[c.dataIndex]);
4145
- searchForm = _objectSpread2(_objectSpread2({}, searchForm), transformObj);
4146
4146
 
4147
- if (!transformObj[c.dataIndex]) {
4147
+ if (transformObj[c.dataIndex] == undefined) {
4148
4148
  delete searchForm[c.dataIndex];
4149
4149
  }
4150
4150
 
4151
+ searchForm = _objectSpread2(_objectSpread2({}, searchForm), transformObj);
4151
4152
  return false;
4152
4153
  }
4153
4154
 
@@ -7477,24 +7478,24 @@ var TabelCard = function TabelCard(props, ref) {
7477
7478
  while (1) {
7478
7479
  switch (_context6.prev = _context6.next) {
7479
7480
  case 0:
7480
- e.stopPropagation();
7481
+ // e.stopPropagation();
7481
7482
  info = null;
7482
7483
 
7483
7484
  if (!item.fetchInfo) {
7484
- _context6.next = 6;
7485
+ _context6.next = 5;
7485
7486
  break;
7486
7487
  }
7487
7488
 
7488
- _context6.next = 5;
7489
+ _context6.next = 4;
7489
7490
  return item.fetchInfo(record);
7490
7491
 
7491
- case 5:
7492
+ case 4:
7492
7493
  info = _context6.sent;
7493
7494
 
7494
- case 6:
7495
+ case 5:
7495
7496
  (_actionHandler$item$t = actionHandler[item.type]) === null || _actionHandler$item$t === void 0 ? void 0 : _actionHandler$item$t.call(actionHandler, item, info || record, index);
7496
7497
 
7497
- case 7:
7498
+ case 6:
7498
7499
  case "end":
7499
7500
  return _context6.stop();
7500
7501
  }
@@ -7761,7 +7762,11 @@ var TabelCard = function TabelCard(props, ref) {
7761
7762
 
7762
7763
  return submitMethod;
7763
7764
  }(),
7764
- search: modalFormSearch
7765
+ search: _objectSpread2({
7766
+ hideSubmit: true,
7767
+ labelWidth: 110,
7768
+ span: 24
7769
+ }, modalFormSearch)
7765
7770
  }, modalConfig), {}, {
7766
7771
  onFormChange: onFormChange,
7767
7772
  extraColumns: (extraColumns || []).filter(function (item) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "wargerm",
4
- "version": "0.7.55",
4
+ "version": "0.7.57",
5
5
  "scripts": {
6
6
  "dev": "dumi dev",
7
7
  "docs:build": "dumi build",