@kmkf-fe-packages/kmkf-work-order-service-component 0.8.11 → 0.8.12
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.
|
@@ -380,7 +380,7 @@ var FormRender = function FormRender(props) {
|
|
|
380
380
|
// 组件映射
|
|
381
381
|
var fillByMapping = function fillByMapping(triggerUniqueKey, value) {
|
|
382
382
|
var _mappingConfig$config;
|
|
383
|
-
var triggerValue = _typeof(value) === 'object' ? value.value : value;
|
|
383
|
+
var triggerValue = _typeof(value) === 'object' ? value === null || value === void 0 ? void 0 : value.value : value;
|
|
384
384
|
// 如果有映射关系,则修改对应组件的值
|
|
385
385
|
var mapping = (_mappingConfig$config = mappingConfig.config) === null || _mappingConfig$config === void 0 ? void 0 : _mappingConfig$config[triggerUniqueKey];
|
|
386
386
|
if (mapping !== null && mapping !== void 0 && mapping[triggerValue]) {
|
|
@@ -404,12 +404,13 @@ var FormRender = function FormRender(props) {
|
|
|
404
404
|
fillByMapping(uniqueKey, '');
|
|
405
405
|
}
|
|
406
406
|
if (show && hideByXYComponents.includes(uniqueKey)) {
|
|
407
|
+
var _form$getFieldValue;
|
|
407
408
|
var newHideByXYComponents = hideByXYComponents.filter(function (k) {
|
|
408
409
|
return k !== uniqueKey;
|
|
409
410
|
});
|
|
410
411
|
hideByXYComponents = newHideByXYComponents;
|
|
411
412
|
// setHideByXYComponents(newHideByXYComponents)
|
|
412
|
-
fillByMapping(uniqueKey, form.getFieldValue(uniqueKey).value);
|
|
413
|
+
fillByMapping(uniqueKey, (_form$getFieldValue = form.getFieldValue(uniqueKey)) === null || _form$getFieldValue === void 0 ? void 0 : _form$getFieldValue.value);
|
|
413
414
|
}
|
|
414
415
|
}
|
|
415
416
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.12",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"gitHooks": {
|
|
76
76
|
"pre-commit": "lint-staged"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "b61deac253d02e7bebeae04260ca73d7e382ac25"
|
|
79
79
|
}
|