@kmkf-fe-packages/basic-components 1.24.0 → 1.25.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
@@ -7469,7 +7469,12 @@ var IdentifyAddress = function IdentifyAddress(props) {
7469
7469
  workOrder: AddressData
7470
7470
  }[type] || AddressData).getInstance();
7471
7471
  if ((val === null || val === void 0 ? void 0 : val.province) && addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
7472
- params.address = [addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.city), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.district)];
7472
+ // params.address = [
7473
+ // addressData.getProCodeByName(val?.province),
7474
+ // addressData.getProCodeByName(val?.city),
7475
+ // addressData.getProCodeByName(val?.district),
7476
+ // ];
7477
+ params.address = addressData.getCodesByNames([val === null || val === void 0 ? void 0 : val.province, val === null || val === void 0 ? void 0 : val.city, val === null || val === void 0 ? void 0 : val.district]);
7473
7478
  }
7474
7479
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, params));
7475
7480
  };
@@ -8110,7 +8115,12 @@ function ApaasAddress(props) {
8110
8115
  };
8111
8116
  var addressData = type === 'bs' ? BsAddressData.getInstance() : AddressData.getInstance();
8112
8117
  if ((val === null || val === void 0 ? void 0 : val.province) && addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
8113
- params.address = [addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.city), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.district)];
8118
+ // params.address = [
8119
+ // addressData.getProCodeByName(val?.province),
8120
+ // addressData.getProCodeByName(val?.city),
8121
+ // addressData.getProCodeByName(val?.district),
8122
+ // ];
8123
+ params.address = addressData.getCodesByNames([val === null || val === void 0 ? void 0 : val.province, val === null || val === void 0 ? void 0 : val.city, val === null || val === void 0 ? void 0 : val.district]);
8114
8124
  }
8115
8125
  onChange === null || onChange === void 0 ? void 0 : onChange(params);
8116
8126
  };
package/dist/index.js CHANGED
@@ -7481,7 +7481,12 @@ var IdentifyAddress = function IdentifyAddress(props) {
7481
7481
  workOrder: kmkfUtils.AddressData
7482
7482
  }[type] || kmkfUtils.AddressData).getInstance();
7483
7483
  if ((val === null || val === void 0 ? void 0 : val.province) && addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
7484
- params.address = [addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.city), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.district)];
7484
+ // params.address = [
7485
+ // addressData.getProCodeByName(val?.province),
7486
+ // addressData.getProCodeByName(val?.city),
7487
+ // addressData.getProCodeByName(val?.district),
7488
+ // ];
7489
+ params.address = addressData.getCodesByNames([val === null || val === void 0 ? void 0 : val.province, val === null || val === void 0 ? void 0 : val.city, val === null || val === void 0 ? void 0 : val.district]);
7485
7490
  }
7486
7491
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, params));
7487
7492
  };
@@ -8122,7 +8127,12 @@ function ApaasAddress(props) {
8122
8127
  };
8123
8128
  var addressData = type === 'bs' ? kmkfUtils.BsAddressData.getInstance() : kmkfUtils.AddressData.getInstance();
8124
8129
  if ((val === null || val === void 0 ? void 0 : val.province) && addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
8125
- params.address = [addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.city), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.district)];
8130
+ // params.address = [
8131
+ // addressData.getProCodeByName(val?.province),
8132
+ // addressData.getProCodeByName(val?.city),
8133
+ // addressData.getProCodeByName(val?.district),
8134
+ // ];
8135
+ params.address = addressData.getCodesByNames([val === null || val === void 0 ? void 0 : val.province, val === null || val === void 0 ? void 0 : val.city, val === null || val === void 0 ? void 0 : val.district]);
8126
8136
  }
8127
8137
  onChange === null || onChange === void 0 ? void 0 : onChange(params);
8128
8138
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "1.24.0",
3
+ "version": "1.25.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": "1.24.0",
23
+ "@kmkf-fe-packages/kmkf-utils": "1.24.1",
24
24
  "ahooks": "^3.7.4",
25
25
  "bignumber.js": "^9.1.2",
26
26
  "kmkf-monitor": "^0.8.9",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "f9fa573f78392f4ac272330dce1dce63f0b79d05"
68
+ "gitHead": "2e253663407d91b75c1269776c4679c5a3c4e975"
69
69
  }
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- interface BsGoodsProps {
3
- value: any[];
4
- type: string;
5
- options: any[];
6
- disabled: boolean;
7
- showHeader: string[];
8
- columnsSetting: {
9
- title: string;
10
- dataIndex: string;
11
- show?: boolean;
12
- }[];
13
- width: number;
14
- shopList: any[];
15
- shopId: string | number;
16
- maxLength: number;
17
- showChangeBtn: boolean;
18
- showModeBtn: boolean;
19
- isStrict: boolean;
20
- tableSelect?: boolean;
21
- selectType?: string;
22
- otherOperations: any;
23
- canUpdateNumber: boolean;
24
- shopCode: string;
25
- companyKey: string;
26
- onChange: (val: any[]) => void;
27
- onSelect: (val: any[]) => void;
28
- onDelete: (val: any[]) => void;
29
- onModeChange: (val: boolean) => void;
30
- tradeGoods?: {
31
- originDataSource: Array<any>;
32
- selectedGoodsChange: (p: React.Key[]) => void;
33
- };
34
- }
35
- declare const GoodItem: (props: Partial<BsGoodsProps>) => React.JSX.Element;
36
- export default GoodItem;
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import './richItem.less';
3
- export interface RichGoodProps {
4
- isSingleRow: boolean;
5
- value?: {
6
- shopId: string;
7
- imgList: any[];
8
- };
9
- showChangeBtn?: boolean;
10
- type?: number;
11
- enableItemId?: boolean;
12
- enableSupplierName?: boolean;
13
- userNick?: string;
14
- maxLength: number;
15
- canUpdateNumber?: boolean;
16
- onChange?: (value: any) => void;
17
- shopList: any[];
18
- otherOperations?: React.JSX.Element;
19
- showHeader?: string[];
20
- shopId?: string;
21
- disabled?: boolean;
22
- changeSku?: boolean;
23
- width?: string | number;
24
- }
25
- declare const GoodItem: (props: Partial<RichGoodProps>) => React.JSX.Element;
26
- export default GoodItem;