wargerm 0.2.14 → 0.2.15
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 +7 -2
- package/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -8506,8 +8506,13 @@ var WForm = function WForm(props, ref) {
|
|
8506
8506
|
var searchForm = form.getFieldsValue();
|
8507
8507
|
filterFormColumns.forEach(function (c) {
|
8508
8508
|
if (c.search && c.search.transform) {
|
8509
|
-
|
8510
|
-
|
8509
|
+
var transformObj = c.search.transform(searchForm[c.dataIndex]);
|
8510
|
+
searchForm = _objectSpread2(_objectSpread2({}, searchForm), transformObj);
|
8511
|
+
|
8512
|
+
if (!transformObj[c.dataIndex]) {
|
8513
|
+
delete searchForm[c.dataIndex];
|
8514
|
+
}
|
8515
|
+
|
8511
8516
|
return false;
|
8512
8517
|
}
|
8513
8518
|
|
package/dist/index.js
CHANGED
@@ -8539,8 +8539,13 @@ var WForm = function WForm(props, ref) {
|
|
8539
8539
|
var searchForm = form.getFieldsValue();
|
8540
8540
|
filterFormColumns.forEach(function (c) {
|
8541
8541
|
if (c.search && c.search.transform) {
|
8542
|
-
|
8543
|
-
|
8542
|
+
var transformObj = c.search.transform(searchForm[c.dataIndex]);
|
8543
|
+
searchForm = _objectSpread2(_objectSpread2({}, searchForm), transformObj);
|
8544
|
+
|
8545
|
+
if (!transformObj[c.dataIndex]) {
|
8546
|
+
delete searchForm[c.dataIndex];
|
8547
|
+
}
|
8548
|
+
|
8544
8549
|
return false;
|
8545
8550
|
}
|
8546
8551
|
|