@kmkf-fe-packages/kmkf-utils 0.6.3-alpha.37 → 0.6.3-alpha.39

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.
@@ -1,2 +1,2 @@
1
- declare const _default: (vales: any[], options: any) => any[];
1
+ declare const _default: (values: any[], options: any) => any[];
2
2
  export default _default;
@@ -2,17 +2,17 @@ import isEmpty from 'lodash/isEmpty';
2
2
  import keys from 'lodash/keys';
3
3
  import get from 'lodash/get';
4
4
  import find from 'lodash/find';
5
- export default (function (vales, options) {
6
- if (isEmpty(vales)) return [];
5
+ export default (function (values, options) {
6
+ if (isEmpty(values)) return [];
7
7
  var newKV = [];
8
- vales === null || vales === void 0 ? void 0 : vales.map(function (value, index) {
8
+ values === null || values === void 0 ? void 0 : values.map(function (value, index) {
9
9
  var list = options[index]['list'];
10
10
  var flatt = keys(list).reduce(function (next, cur) {
11
11
  return next.concat(list[cur]);
12
12
  }, []);
13
13
  var label = get(find(flatt, {
14
14
  actived: value
15
- }), 'label');
15
+ }), 'label', '');
16
16
  newKV.push({
17
17
  label: label,
18
18
  actived: value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-utils",
3
- "version": "0.6.3-alpha.37",
3
+ "version": "0.6.3-alpha.39",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -42,5 +42,5 @@
42
42
  "gitHooks": {
43
43
  "pre-commit": "lint-staged"
44
44
  },
45
- "gitHead": "a94eb188b6596c4e7b7fcd2cea915b3c52cb722e"
45
+ "gitHead": "11e3dc7ff8cb374b91d27d81bccaaf27d168adc4"
46
46
  }