@kmkf-fe-packages/kmkf-work-order-service-component 2.2.14-beta.0 → 2.2.14-beta.1

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.
@@ -675,6 +675,7 @@ var FormRender = function FormRender(props, ref) {
675
675
  // 如果有映射关系,则修改对应组件的值
676
676
  var mapping = (_mappingConfig$config = mappingConfig.config) === null || _mappingConfig$config === void 0 ? void 0 : _mappingConfig$config[triggerUniqueKey];
677
677
  if (mapping !== null && mapping !== void 0 && mapping[triggerValue]) {
678
+ console.debug('重置表单值1', mapping === null || mapping === void 0 ? void 0 : mapping[triggerValue]);
678
679
  form.setFieldsValue(mapping === null || mapping === void 0 ? void 0 : mapping[triggerValue]);
679
680
  } else {
680
681
  var resetSet = new Set();
@@ -683,6 +684,7 @@ var FormRender = function FormRender(props, ref) {
683
684
  resetSet.add(uniqueKey);
684
685
  }
685
686
  }
687
+ console.debug('重置表单值2', _toConsumableArray(resetSet));
686
688
  form.resetFields(_toConsumableArray(resetSet));
687
689
  }
688
690
  resetMappingHideComponents();
@@ -1357,9 +1359,7 @@ var FormRender = function FormRender(props, ref) {
1357
1359
  currentTemplateAllComponentsDisplay.current[instance === null || instance === void 0 ? void 0 : instance.id] = true;
1358
1360
  if (Reflect.has(idConditionListMap, instance.id)) {
1359
1361
  var currentIdDependenceOtherFields = idConditionListMap[instance.id];
1360
- // console.group('当前组件', instance.id, instance.name);
1361
1362
  var dependencies = findAllDependencies(instance.id, idConditionListMap);
1362
- // console.log('当前组件所依赖项: ', dependencies);
1363
1363
  var currentDependenciesMappingComponent = _toConsumableArray(new Set(dependencies.concat(instance.id))).reduce(function (cur, nxt) {
1364
1364
  var _findValueDependencie, _findValueDependencie2;
1365
1365
  var mappingDependencies = (_findValueDependencie = findValueDependencies(nxt, mappingConfig.config)) === null || _findValueDependencie === void 0 ? void 0 : (_findValueDependencie2 = _findValueDependencie.dependencies) === null || _findValueDependencie2 === void 0 ? void 0 : _findValueDependencie2.map(function (item) {
@@ -1368,9 +1368,6 @@ var FormRender = function FormRender(props, ref) {
1368
1368
  cur = cur.concat(mappingDependencies);
1369
1369
  return cur;
1370
1370
  }, []);
1371
- // console.log('当前组件所依赖项+值映射依赖项: ', currentDependenciesMappingComponent);
1372
- // console.groupEnd();
1373
- // 需要增加显隐处理逻辑
1374
1371
  return /*#__PURE__*/React.createElement(Form.Item, {
1375
1372
  noStyle: true,
1376
1373
  dependencies: _toConsumableArray(new Set(dependencies.concat(currentDependenciesMappingComponent)))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-work-order-service-component",
3
- "version": "2.2.14-beta.0",
3
+ "version": "2.2.14-beta.1",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -74,7 +74,7 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "5de44321b8d79bdcf088acfb4c1df98e79394897",
77
+ "gitHead": "c63d979d1d68cc3f7a5c9ba9c190b03be0b65a69",
78
78
  "gitHooks": {
79
79
  "pre-commit": "lint-staged"
80
80
  }