@kmkf-fe-packages/services-components 1.17.8-beta.5 → 1.17.8-beta.7

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.
@@ -21,6 +21,7 @@ import BsHeaderChild from "../BS/common/BsHeaderChild";
21
21
  import GetFormItem from "../GetFormItem";
22
22
  import ItemView from "../../commonComponents/ItemView";
23
23
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
24
+ import { difference } from 'lodash';
24
25
  import { SYMBOL } from "../../constant";
25
26
  var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
26
27
  var _this = this;
@@ -160,9 +161,22 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
160
161
  }
161
162
  return prv;
162
163
  }, {});
163
- var msg = (value || []).reduce(function (prv, next) {
164
+ // TODO: 补充确省字段
165
+ var fillKeysValue = value === null || value === void 0 ? void 0 : value.map(function (item) {
166
+ var _this$componentConfig11, _this$componentConfig12;
167
+ var lostKeys = difference((_this$componentConfig11 = _this.componentConfig) === null || _this$componentConfig11 === void 0 ? void 0 : (_this$componentConfig12 = _this$componentConfig11.tableHeader) === null || _this$componentConfig12 === void 0 ? void 0 : _this$componentConfig12.map(function (item) {
168
+ return item.key;
169
+ }), Object.keys(item));
170
+ if (!isNull(lostKeys)) {
171
+ return lostKeys.reduce(function (prv, next) {
172
+ return _objectSpread(_objectSpread({}, prv), {}, _defineProperty({}, next, undefined));
173
+ }, item);
174
+ }
175
+ return item;
176
+ });
177
+ var msg = (fillKeysValue || []).reduce(function (prv, next) {
164
178
  Object.keys(next).forEach(function (key) {
165
- if (result[key] && !next[key]) {
179
+ if (result[key] && isNull(next[key])) {
166
180
  prv = result[key];
167
181
  }
168
182
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.17.8-beta.5",
3
+ "version": "1.17.8-beta.7",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "c616c0a5e6fcbc8bee77d8cdd17645c951c86aaa",
44
+ "gitHead": "6f185f0c191ff14bd0b57660baf6305cfdd30d62",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }