@zat-design/sisyphus-react 3.7.2-beta.10 → 3.7.2-beta.11
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.
|
@@ -238,10 +238,12 @@ export var useTransformColumns = function useTransformColumns(params) {
|
|
|
238
238
|
args[_key] = arguments[_key];
|
|
239
239
|
}
|
|
240
240
|
newValue = valueFromEventWrapper(column, args);
|
|
241
|
-
if (
|
|
241
|
+
if (transform === null || transform === void 0 ? void 0 : transform.normalize) {
|
|
242
242
|
var _transform$normalize;
|
|
243
|
+
newValue = transform === null || transform === void 0 ? void 0 : (_transform$normalize = transform.normalize) === null || _transform$normalize === void 0 ? void 0 : _transform$normalize.call(transform, newValue);
|
|
244
|
+
} else if (normalize) {
|
|
243
245
|
// @ts-ignore
|
|
244
|
-
newValue =
|
|
246
|
+
newValue = normalize === null || normalize === void 0 ? void 0 : normalize(newValue);
|
|
245
247
|
}
|
|
246
248
|
internalChange === null || internalChange === void 0 ? void 0 : internalChange(newValue, args[1], index);
|
|
247
249
|
var values = form.getFieldValue(namePath);
|
|
@@ -245,10 +245,12 @@ var useTransformColumns = exports.useTransformColumns = function useTransformCol
|
|
|
245
245
|
args[_key] = arguments[_key];
|
|
246
246
|
}
|
|
247
247
|
newValue = valueFromEventWrapper(column, args);
|
|
248
|
-
if (
|
|
248
|
+
if (transform === null || transform === void 0 ? void 0 : transform.normalize) {
|
|
249
249
|
var _transform$normalize;
|
|
250
|
+
newValue = transform === null || transform === void 0 ? void 0 : (_transform$normalize = transform.normalize) === null || _transform$normalize === void 0 ? void 0 : _transform$normalize.call(transform, newValue);
|
|
251
|
+
} else if (normalize) {
|
|
250
252
|
// @ts-ignore
|
|
251
|
-
newValue =
|
|
253
|
+
newValue = normalize === null || normalize === void 0 ? void 0 : normalize(newValue);
|
|
252
254
|
}
|
|
253
255
|
internalChange === null || internalChange === void 0 ? void 0 : internalChange(newValue, args[1], index);
|
|
254
256
|
var values = form.getFieldValue(namePath);
|