wargerm 0.7.88 → 0.7.90
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 +8 -10
- package/dist/index.js +8 -10
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
@@ -2542,6 +2542,7 @@ function Index$1(_ref, ref) {
|
|
2542
2542
|
onPreview: handlePreview,
|
2543
2543
|
onChange: handleChange,
|
2544
2544
|
onRemove: handleronRemove,
|
2545
|
+
beforeUpload: beforeUploadIn,
|
2545
2546
|
customRequest: request,
|
2546
2547
|
onProgress: function onProgress(_ref6) {
|
2547
2548
|
var percent = _ref6.percent;
|
@@ -4223,7 +4224,7 @@ var WForm = function WForm(props, ref) {
|
|
4223
4224
|
filterFormColumns.forEach(function (c) {
|
4224
4225
|
if (c.type == 'group') {
|
4225
4226
|
var _c$children3;
|
4226
|
-
|
4227
|
+
(_c$children3 = c.children) === null || _c$children3 === void 0 ? void 0 : _c$children3.forEach(function (itm) {
|
4227
4228
|
if (itm.search && itm.search.transform) {
|
4228
4229
|
var transformObj = itm.search.transform(searchForm[itm.dataIndex]);
|
4229
4230
|
if (transformObj[itm.dataIndex] == undefined) {
|
@@ -4281,24 +4282,22 @@ var WForm = function WForm(props, ref) {
|
|
4281
4282
|
filterFormColumns.forEach(function (c) {
|
4282
4283
|
if (c.type == 'group') {
|
4283
4284
|
var _c$children4;
|
4284
|
-
|
4285
|
+
(_c$children4 = c.children) === null || _c$children4 === void 0 ? void 0 : _c$children4.forEach(function (itm) {
|
4285
4286
|
if (itm.search && itm.search.transform) {
|
4286
4287
|
var transformObj = itm.search.transform(searchForm[itm.dataIndex]);
|
4287
4288
|
searchForm = _objectSpread2(_objectSpread2({}, searchForm), transformObj);
|
4288
|
-
if (
|
4289
|
+
if (transformObj[itm.dataIndex] == undefined) {
|
4289
4290
|
delete searchForm[itm.dataIndex];
|
4290
4291
|
}
|
4291
|
-
return false;
|
4292
4292
|
}
|
4293
4293
|
});
|
4294
4294
|
}
|
4295
4295
|
if (c.search && c.search.transform) {
|
4296
4296
|
var transformObj = c.search.transform(searchForm[c.dataIndex]);
|
4297
4297
|
searchForm = _objectSpread2(_objectSpread2({}, searchForm), transformObj);
|
4298
|
-
if (
|
4298
|
+
if (transformObj[c.dataIndex] == undefined) {
|
4299
4299
|
delete searchForm[c.dataIndex];
|
4300
4300
|
}
|
4301
|
-
return false;
|
4302
4301
|
}
|
4303
4302
|
if (c.valueType && ['date', 'dateTime', 'dateMonth', 'dateYear', 'dateRange', 'dateTimeRange'].includes(c.valueType)) {
|
4304
4303
|
if (c.valueType === 'date' && searchForm[c.dataIndex]) {
|
@@ -4351,21 +4350,20 @@ var WForm = function WForm(props, ref) {
|
|
4351
4350
|
filterFormColumns.forEach(function (c) {
|
4352
4351
|
if (c.type == 'group') {
|
4353
4352
|
var _c$children5;
|
4354
|
-
|
4353
|
+
(_c$children5 = c.children) === null || _c$children5 === void 0 ? void 0 : _c$children5.forEach(function (itm) {
|
4355
4354
|
if (itm.search && itm.search.transformSetForm) {
|
4356
4355
|
var transformObj = itm.search.transformSetForm(setFieldsValues[itm.dataIndex], setFieldsValues);
|
4357
4356
|
setFieldsValues = _objectSpread2(_objectSpread2({}, setFieldsValues), transformObj);
|
4358
|
-
if (
|
4357
|
+
if (transformObj[itm.dataIndex] == undefined) {
|
4359
4358
|
delete setFieldsValues[itm.dataIndex];
|
4360
4359
|
}
|
4361
|
-
return false;
|
4362
4360
|
}
|
4363
4361
|
});
|
4364
4362
|
}
|
4365
4363
|
if (c.search && c.search.transformSetForm) {
|
4366
4364
|
var transformObj = c.search.transformSetForm(setFieldsValues[c.dataIndex], setFieldsValues);
|
4367
4365
|
setFieldsValues = _objectSpread2(_objectSpread2({}, setFieldsValues), transformObj);
|
4368
|
-
if (
|
4366
|
+
if (transformObj[c.dataIndex] == undefined) {
|
4369
4367
|
delete setFieldsValues[c.dataIndex];
|
4370
4368
|
}
|
4371
4369
|
return false;
|
package/dist/index.js
CHANGED
@@ -2586,6 +2586,7 @@ function Index$1(_ref, ref) {
|
|
2586
2586
|
onPreview: handlePreview,
|
2587
2587
|
onChange: handleChange,
|
2588
2588
|
onRemove: handleronRemove,
|
2589
|
+
beforeUpload: beforeUploadIn,
|
2589
2590
|
customRequest: request,
|
2590
2591
|
onProgress: function onProgress(_ref6) {
|
2591
2592
|
var percent = _ref6.percent;
|
@@ -4267,7 +4268,7 @@ var WForm = function WForm(props, ref) {
|
|
4267
4268
|
filterFormColumns.forEach(function (c) {
|
4268
4269
|
if (c.type == 'group') {
|
4269
4270
|
var _c$children3;
|
4270
|
-
|
4271
|
+
(_c$children3 = c.children) === null || _c$children3 === void 0 ? void 0 : _c$children3.forEach(function (itm) {
|
4271
4272
|
if (itm.search && itm.search.transform) {
|
4272
4273
|
var transformObj = itm.search.transform(searchForm[itm.dataIndex]);
|
4273
4274
|
if (transformObj[itm.dataIndex] == undefined) {
|
@@ -4325,24 +4326,22 @@ var WForm = function WForm(props, ref) {
|
|
4325
4326
|
filterFormColumns.forEach(function (c) {
|
4326
4327
|
if (c.type == 'group') {
|
4327
4328
|
var _c$children4;
|
4328
|
-
|
4329
|
+
(_c$children4 = c.children) === null || _c$children4 === void 0 ? void 0 : _c$children4.forEach(function (itm) {
|
4329
4330
|
if (itm.search && itm.search.transform) {
|
4330
4331
|
var transformObj = itm.search.transform(searchForm[itm.dataIndex]);
|
4331
4332
|
searchForm = _objectSpread2(_objectSpread2({}, searchForm), transformObj);
|
4332
|
-
if (
|
4333
|
+
if (transformObj[itm.dataIndex] == undefined) {
|
4333
4334
|
delete searchForm[itm.dataIndex];
|
4334
4335
|
}
|
4335
|
-
return false;
|
4336
4336
|
}
|
4337
4337
|
});
|
4338
4338
|
}
|
4339
4339
|
if (c.search && c.search.transform) {
|
4340
4340
|
var transformObj = c.search.transform(searchForm[c.dataIndex]);
|
4341
4341
|
searchForm = _objectSpread2(_objectSpread2({}, searchForm), transformObj);
|
4342
|
-
if (
|
4342
|
+
if (transformObj[c.dataIndex] == undefined) {
|
4343
4343
|
delete searchForm[c.dataIndex];
|
4344
4344
|
}
|
4345
|
-
return false;
|
4346
4345
|
}
|
4347
4346
|
if (c.valueType && ['date', 'dateTime', 'dateMonth', 'dateYear', 'dateRange', 'dateTimeRange'].includes(c.valueType)) {
|
4348
4347
|
if (c.valueType === 'date' && searchForm[c.dataIndex]) {
|
@@ -4395,21 +4394,20 @@ var WForm = function WForm(props, ref) {
|
|
4395
4394
|
filterFormColumns.forEach(function (c) {
|
4396
4395
|
if (c.type == 'group') {
|
4397
4396
|
var _c$children5;
|
4398
|
-
|
4397
|
+
(_c$children5 = c.children) === null || _c$children5 === void 0 ? void 0 : _c$children5.forEach(function (itm) {
|
4399
4398
|
if (itm.search && itm.search.transformSetForm) {
|
4400
4399
|
var transformObj = itm.search.transformSetForm(setFieldsValues[itm.dataIndex], setFieldsValues);
|
4401
4400
|
setFieldsValues = _objectSpread2(_objectSpread2({}, setFieldsValues), transformObj);
|
4402
|
-
if (
|
4401
|
+
if (transformObj[itm.dataIndex] == undefined) {
|
4403
4402
|
delete setFieldsValues[itm.dataIndex];
|
4404
4403
|
}
|
4405
|
-
return false;
|
4406
4404
|
}
|
4407
4405
|
});
|
4408
4406
|
}
|
4409
4407
|
if (c.search && c.search.transformSetForm) {
|
4410
4408
|
var transformObj = c.search.transformSetForm(setFieldsValues[c.dataIndex], setFieldsValues);
|
4411
4409
|
setFieldsValues = _objectSpread2(_objectSpread2({}, setFieldsValues), transformObj);
|
4412
|
-
if (
|
4410
|
+
if (transformObj[c.dataIndex] == undefined) {
|
4413
4411
|
delete setFieldsValues[c.dataIndex];
|
4414
4412
|
}
|
4415
4413
|
return false;
|
package/package.json
CHANGED