@kmkf-fe-packages/kmkf-work-order-service-component 0.8.10 → 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
  };
@@ -25,7 +25,7 @@ var Header = function Header(props) {
25
25
  className: "".concat(styles.tag, " ").concat(styles === null || styles === void 0 ? void 0 : styles[NODE_TYPE === null || NODE_TYPE === void 0 ? void 0 : (_NODE_TYPE$tag = NODE_TYPE[tag]) === null || _NODE_TYPE$tag === void 0 ? void 0 : _NODE_TYPE$tag.className])
26
26
  }, NODE_TYPE === null || NODE_TYPE === void 0 ? void 0 : (_NODE_TYPE$tag2 = NODE_TYPE[tag]) === null || _NODE_TYPE$tag2 === void 0 ? void 0 : _NODE_TYPE$tag2.label), /*#__PURE__*/React.createElement(Tooltip, {
27
27
  title: /*#__PURE__*/React.createElement("span", {
28
- className: "span-wrap"
28
+ className: "spanWrap"
29
29
  }, "".concat(nodeName, " ").concat(handler ? "(\u5904\u7406\u4EBA: ".concat(handler, ")") : ''))
30
30
  }, /*#__PURE__*/React.createElement("span", {
31
31
  className: styles.nodeName
@@ -53,7 +53,7 @@
53
53
  }
54
54
  }
55
55
 
56
- .span-wrap {
56
+ .spanWrap {
57
57
  word-break:normal;
58
58
  width:auto;
59
59
  display:block;
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.10",
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": "c0d21603977fa90af0108c1a0d00c4d0d5933c9a"
78
+ "gitHead": "b61deac253d02e7bebeae04260ca73d7e382ac25"
79
79
  }