@kmkf-fe-packages/basic-components 1.0.6-rc.4 → 1.0.6-rc.5

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
@@ -11846,7 +11846,7 @@ var GoodItem$1 = function GoodItem(props) {
11846
11846
  width: 70
11847
11847
  },
11848
11848
  value: val,
11849
- min: 0,
11849
+ min: 1,
11850
11850
  precision: 0,
11851
11851
  onChange: function onChange(num) {
11852
11852
  return updateHandle(num, index, 'num');
@@ -11896,7 +11896,7 @@ var GoodItem$1 = function GoodItem(props) {
11896
11896
  return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
11897
11897
  }
11898
11898
  }, {
11899
- dataIndex: 'productType',
11899
+ dataIndex: 'type',
11900
11900
  title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
11901
11901
  align: 'center',
11902
11902
  ellipsis: true,
@@ -11916,7 +11916,7 @@ var GoodItem$1 = function GoodItem(props) {
11916
11916
  options: options,
11917
11917
  value: val,
11918
11918
  onChange: function onChange(value) {
11919
- return updateHandle(value, index, 'productType');
11919
+ return updateHandle(value, index, 'type');
11920
11920
  }
11921
11921
  }) : /*#__PURE__*/React.createElement("span", null, val);
11922
11922
  }
@@ -11973,7 +11973,7 @@ var GoodItem$1 = function GoodItem(props) {
11973
11973
  width: 70
11974
11974
  },
11975
11975
  value: val,
11976
- min: 0,
11976
+ min: 1,
11977
11977
  precision: 0,
11978
11978
  onChange: function onChange(num) {
11979
11979
  return updateHandle(num, index, 'num');
@@ -12023,7 +12023,7 @@ var GoodItem$1 = function GoodItem(props) {
12023
12023
  return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
12024
12024
  }
12025
12025
  }, {
12026
- dataIndex: 'productType',
12026
+ dataIndex: 'type',
12027
12027
  title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
12028
12028
  align: 'center',
12029
12029
  ellipsis: true,
@@ -12043,7 +12043,7 @@ var GoodItem$1 = function GoodItem(props) {
12043
12043
  options: options,
12044
12044
  value: val,
12045
12045
  onChange: function onChange(value) {
12046
- return updateHandle(value, index, 'productType');
12046
+ return updateHandle(value, index, 'type');
12047
12047
  }
12048
12048
  }) : /*#__PURE__*/React.createElement("span", null, val);
12049
12049
  }
@@ -12201,7 +12201,7 @@ var GoodItem$1 = function GoodItem(props) {
12201
12201
  item.canUpdateNumber = canUpdateNumber;
12202
12202
  if (type === 'WDT_EXCHANGE_GOODS') {
12203
12203
  item.price = item.retailPrice;
12204
- item.productType = '1';
12204
+ item.type = '1';
12205
12205
  }
12206
12206
  return item;
12207
12207
  });
@@ -13327,12 +13327,15 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
13327
13327
  });
13328
13328
  if (compType === 'WDT_RETURN_GOODS') {
13329
13329
  newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13330
- if (typeof item.productType === 'undefined') {
13331
- item.productType = '1';
13330
+ if (typeof item.type === 'undefined') {
13331
+ item.type = '1';
13332
13332
  }
13333
13333
  if (typeof item.returnPrice === 'undefined') {
13334
13334
  item.returnPrice = new BigNumber(item.num).multipliedBy(new BigNumber(item.sharePrice)).toString();
13335
13335
  }
13336
+ if (item.srcOid) {
13337
+ item.oid = item.srcOid;
13338
+ }
13336
13339
  return item;
13337
13340
  });
13338
13341
  } else {
@@ -13352,12 +13355,15 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
13352
13355
  });
13353
13356
  if (compType === 'WDT_RETURN_GOODS') {
13354
13357
  newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13355
- if (typeof item.productType === 'undefined') {
13356
- item.productType = '1';
13358
+ if (typeof item.type === 'undefined') {
13359
+ item.type = '1';
13357
13360
  }
13358
13361
  if (typeof item.returnPrice === 'undefined') {
13359
13362
  item.returnPrice = new BigNumber(item.num).multipliedBy(new BigNumber(item.sharePrice)).toString();
13360
13363
  }
13364
+ if (item.srcOid) {
13365
+ item.oid = item.srcOid;
13366
+ }
13361
13367
  return item;
13362
13368
  });
13363
13369
  } else {
@@ -13462,8 +13468,8 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
13462
13468
  };
13463
13469
  if (compType === 'WDT_EXCHANGE_GOODS') {
13464
13470
  newValue[componentMap$3[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13465
- if (typeof item.productType === 'undefined') {
13466
- item.productType = '1';
13471
+ if (typeof item.type === 'undefined') {
13472
+ item.type = '1';
13467
13473
  }
13468
13474
  item.price = item.sharePrice;
13469
13475
  if (typeof item.exchangePrice === 'undefined') {
package/dist/index.js CHANGED
@@ -11858,7 +11858,7 @@ var GoodItem$1 = function GoodItem(props) {
11858
11858
  width: 70
11859
11859
  },
11860
11860
  value: val,
11861
- min: 0,
11861
+ min: 1,
11862
11862
  precision: 0,
11863
11863
  onChange: function onChange(num) {
11864
11864
  return updateHandle(num, index, 'num');
@@ -11908,7 +11908,7 @@ var GoodItem$1 = function GoodItem(props) {
11908
11908
  return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
11909
11909
  }
11910
11910
  }, {
11911
- dataIndex: 'productType',
11911
+ dataIndex: 'type',
11912
11912
  title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
11913
11913
  align: 'center',
11914
11914
  ellipsis: true,
@@ -11928,7 +11928,7 @@ var GoodItem$1 = function GoodItem(props) {
11928
11928
  options: options,
11929
11929
  value: val,
11930
11930
  onChange: function onChange(value) {
11931
- return updateHandle(value, index, 'productType');
11931
+ return updateHandle(value, index, 'type');
11932
11932
  }
11933
11933
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
11934
11934
  }
@@ -11985,7 +11985,7 @@ var GoodItem$1 = function GoodItem(props) {
11985
11985
  width: 70
11986
11986
  },
11987
11987
  value: val,
11988
- min: 0,
11988
+ min: 1,
11989
11989
  precision: 0,
11990
11990
  onChange: function onChange(num) {
11991
11991
  return updateHandle(num, index, 'num');
@@ -12035,7 +12035,7 @@ var GoodItem$1 = function GoodItem(props) {
12035
12035
  return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
12036
12036
  }
12037
12037
  }, {
12038
- dataIndex: 'productType',
12038
+ dataIndex: 'type',
12039
12039
  title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
12040
12040
  align: 'center',
12041
12041
  ellipsis: true,
@@ -12055,7 +12055,7 @@ var GoodItem$1 = function GoodItem(props) {
12055
12055
  options: options,
12056
12056
  value: val,
12057
12057
  onChange: function onChange(value) {
12058
- return updateHandle(value, index, 'productType');
12058
+ return updateHandle(value, index, 'type');
12059
12059
  }
12060
12060
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
12061
12061
  }
@@ -12213,7 +12213,7 @@ var GoodItem$1 = function GoodItem(props) {
12213
12213
  item.canUpdateNumber = canUpdateNumber;
12214
12214
  if (type === 'WDT_EXCHANGE_GOODS') {
12215
12215
  item.price = item.retailPrice;
12216
- item.productType = '1';
12216
+ item.type = '1';
12217
12217
  }
12218
12218
  return item;
12219
12219
  });
@@ -13339,12 +13339,15 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
13339
13339
  });
13340
13340
  if (compType === 'WDT_RETURN_GOODS') {
13341
13341
  newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13342
- if (typeof item.productType === 'undefined') {
13343
- item.productType = '1';
13342
+ if (typeof item.type === 'undefined') {
13343
+ item.type = '1';
13344
13344
  }
13345
13345
  if (typeof item.returnPrice === 'undefined') {
13346
13346
  item.returnPrice = new BigNumber__default['default'](item.num).multipliedBy(new BigNumber__default['default'](item.sharePrice)).toString();
13347
13347
  }
13348
+ if (item.srcOid) {
13349
+ item.oid = item.srcOid;
13350
+ }
13348
13351
  return item;
13349
13352
  });
13350
13353
  } else {
@@ -13364,12 +13367,15 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
13364
13367
  });
13365
13368
  if (compType === 'WDT_RETURN_GOODS') {
13366
13369
  newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13367
- if (typeof item.productType === 'undefined') {
13368
- item.productType = '1';
13370
+ if (typeof item.type === 'undefined') {
13371
+ item.type = '1';
13369
13372
  }
13370
13373
  if (typeof item.returnPrice === 'undefined') {
13371
13374
  item.returnPrice = new BigNumber__default['default'](item.num).multipliedBy(new BigNumber__default['default'](item.sharePrice)).toString();
13372
13375
  }
13376
+ if (item.srcOid) {
13377
+ item.oid = item.srcOid;
13378
+ }
13373
13379
  return item;
13374
13380
  });
13375
13381
  } else {
@@ -13474,8 +13480,8 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
13474
13480
  };
13475
13481
  if (compType === 'WDT_EXCHANGE_GOODS') {
13476
13482
  newValue[componentMap$3[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13477
- if (typeof item.productType === 'undefined') {
13478
- item.productType = '1';
13483
+ if (typeof item.type === 'undefined') {
13484
+ item.type = '1';
13479
13485
  }
13480
13486
  item.price = item.sharePrice;
13481
13487
  if (typeof item.exchangePrice === 'undefined') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "1.0.6-rc.4",
3
+ "version": "1.0.6-rc.5",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "5475f25a3c7cba6c160bb04867b542a38010a086"
68
+ "gitHead": "bfe2b801bf682c9b64a5b6138db951af85d74cad"
69
69
  }