@kmkf-fe-packages/kmkf-utils 1.16.5-beta.0 → 1.17.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.
@@ -51,7 +51,7 @@ export var queryAddressData = function queryAddressData() {
51
51
  export var queryBsAddressData = function queryBsAddressData() {
52
52
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : BsAddressData.getInstance();
53
53
  return request({
54
- url: "/qy/gdfw/template/queryBsAreas/noLogin",
54
+ url: "/qy/gdfw/template/queryBsAreas",
55
55
  method: "get",
56
56
  data: {}
57
57
  }).then(function (resp) {
@@ -1,9 +1,3 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
1
  import isEmpty from "lodash/isEmpty";
8
2
  import keys from "lodash/keys";
9
3
  import get from "lodash/get";
@@ -14,16 +8,10 @@ export default (function (values, options) {
14
8
  values === null || values === void 0 ? void 0 : values.map(function (value, index) {
15
9
  var list = get(options, "".concat(index, ".list"), []);
16
10
  var flatt = keys(list).reduce(function (next, cur) {
17
- var _list;
18
- var newList = (_list = list[cur]) === null || _list === void 0 ? void 0 : _list.map(function (item) {
19
- return item !== null && item !== void 0 && item.actived ? _objectSpread(_objectSpread({}, item), {}, {
20
- actived: String(item.actived)
21
- }) : item;
22
- });
23
- return next.concat(newList);
11
+ return next.concat(list[cur]);
24
12
  }, []);
25
13
  var label = get(find(flatt, {
26
- actived: String(value)
14
+ actived: value
27
15
  }), "label", "");
28
16
  newKV.push({
29
17
  label: label,
@@ -125,8 +125,8 @@ export default (function (_ref) {
125
125
  break;
126
126
  case "RETURN_LOGISTICS_SELECT":
127
127
  prv[uniqueKey] = {
128
- company: config.isSingle && config.showField === "EXPRESS_COMPANY" || !config.isSingle ? ExpressData.getInstance().getExpressCodeByName(detail["returnLogisticsCompany"]) : "",
129
- order: config.isSingle && config.showField === "EXPRESS_WAYBILL_CODE" || !config.isSingle ? detail["returnLogisticsCode"] : ""
128
+ company: ExpressData.getInstance().getExpressCodeByName(detail["returnLogisticsCompany"]),
129
+ order: detail["returnLogisticsCode"]
130
130
  };
131
131
  break;
132
132
  case "ALI_PAY_INPUT":
@@ -3,7 +3,6 @@ var findNodeById = function findNodeById(tree) {
3
3
  var actived = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
4
4
  for (var i = 0; i < tree.length; i++) {
5
5
  if (tree[i].actived == actived) {
6
- tree[i].actived = String(tree[i].actived);
7
6
  return tree[i];
8
7
  }
9
8
  if (tree[i].children) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-utils",
3
- "version": "1.16.5-beta.0",
3
+ "version": "1.17.1",
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": "d1c1e800a3d5a77674532aecc139062a4d4bf170",
44
+ "gitHead": "5fac758351a9a67049d511d17172b95d895cd5c5",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }