@kmkf-fe-packages/basic-components 0.8.21-alpha.1 → 0.9.1-alpha.0

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.
package/dist/index.esm.js CHANGED
@@ -7445,7 +7445,7 @@ var IdentifyAddress = function IdentifyAddress(props) {
7445
7445
  receiverMobile: val === null || val === void 0 ? void 0 : val.phone,
7446
7446
  address: []
7447
7447
  };
7448
- if (val === null || val === void 0 ? void 0 : val.province) {
7448
+ if ((val === null || val === void 0 ? void 0 : val.province) && AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
7449
7449
  params.address = [AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.province), AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.city), AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.district)];
7450
7450
  }
7451
7451
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, params));
package/dist/index.js CHANGED
@@ -7456,7 +7456,7 @@ var IdentifyAddress = function IdentifyAddress(props) {
7456
7456
  receiverMobile: val === null || val === void 0 ? void 0 : val.phone,
7457
7457
  address: []
7458
7458
  };
7459
- if (val === null || val === void 0 ? void 0 : val.province) {
7459
+ if ((val === null || val === void 0 ? void 0 : val.province) && kmkfUtils.AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
7460
7460
  params.address = [kmkfUtils.AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.province), kmkfUtils.AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.city), kmkfUtils.AddressData.getInstance().getProCodeByName(val === null || val === void 0 ? void 0 : val.district)];
7461
7461
  }
7462
7462
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, params));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.8.21-alpha.1",
3
+ "version": "0.9.1-alpha.0",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,7 +20,7 @@
20
20
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/kmkf-utils": "^0.8.21-alpha.1",
23
+ "@kmkf-fe-packages/kmkf-utils": "^0.8.19",
24
24
  "lodash": "^4.17.21",
25
25
  "pubsub-js": "^1.9.4",
26
26
  "react-copy-to-clipboard": "^5.1.0",
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "1f85f4ce9472dc2958c5b43d45ac9a0cf219e83e"
63
+ "gitHead": "8f6cf7363cbff3615cb4017dc316eb18c7f07739"
64
64
  }