@kmkf-fe-packages/basic-components 0.8.21-alpha.3 → 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
@@ -6854,7 +6854,6 @@ hooks.HTML5_FMT = {
6854
6854
  };
6855
6855
 
6856
6856
  var _excluded$7 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "uniqueKey", "hostUrl", "actionUrl"];
6857
- // import { getInfo } from 'react-mediainfo';
6858
6857
  var Dragger = Upload.Dragger;
6859
6858
  var fn$2 = function fn() {
6860
6859
  return void 0;
@@ -6987,9 +6986,6 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6987
6986
  // 手动上传模式, 一直返回false
6988
6987
  var beforeUpload = function beforeUpload(file) {
6989
6988
  console.log('beforeUpload', file);
6990
- // getInfo(file).then((res: any) => {
6991
- // console.log(res);
6992
- // });
6993
6989
  var size = file.size / 1024 / 1024 < maxSize;
6994
6990
  if (value.length >= maxCount) {
6995
6991
  message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u4E2A\u6587\u4EF6\uFF01"));
@@ -9419,8 +9415,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9419
9415
  interceptReceiverName: undefined,
9420
9416
  interceptReceiverMobile: undefined,
9421
9417
  interceptLogisticsStatus: undefined,
9422
- interceptLogisticsStatusOther: undefined,
9423
- interceptLogisticsSnapshot: undefined
9418
+ interceptLogisticsStatusOther: undefined
9424
9419
  });
9425
9420
  }
9426
9421
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
@@ -10715,14 +10710,12 @@ var BsExchange = function BsExchange(props) {
10715
10710
  }, []);
10716
10711
  var getListHandle = function getListHandle(list, val) {
10717
10712
  var _val$bsExchangeType, _val$bsExchangeType2;
10718
- //固定的sku
10719
- var FIXED_FIELD = ['Q0000002', '600123001', '10103003', 'Q0000003', 'Q0000004'];
10720
10713
  //如果是原单换
10721
10714
  if (['1', '3'].includes(val === null || val === void 0 ? void 0 : (_val$bsExchangeType = val.bsExchangeType) === null || _val$bsExchangeType === void 0 ? void 0 : _val$bsExchangeType[0])) {
10722
10715
  return list.reduce(function (prv, next) {
10723
10716
  next.canDelete = false;
10724
10717
  //数量大于1 拆开
10725
- if (next.number > 1 && !FIXED_FIELD.includes(next.sku)) {
10718
+ if (next.number > 1) {
10726
10719
  var newList = Array(next.number).fill({}).map(function () {
10727
10720
  var newNext = _objectSpread2({}, next);
10728
10721
  newNext.money = newNext.share;
@@ -10742,7 +10735,7 @@ var BsExchange = function BsExchange(props) {
10742
10735
  next.canDelete = true;
10743
10736
  next.index = index;
10744
10737
  //数量大于1 拆开
10745
- if (next.number > 1 && !FIXED_FIELD.includes(next.sku)) {
10738
+ if (next.number > 1) {
10746
10739
  var newList = Array(next.number).fill({}).map(function () {
10747
10740
  var newNext = _objectSpread2({}, next);
10748
10741
  newNext.money = newNext.share;
package/dist/index.js CHANGED
@@ -6865,7 +6865,6 @@ hooks.HTML5_FMT = {
6865
6865
  };
6866
6866
 
6867
6867
  var _excluded$7 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "uniqueKey", "hostUrl", "actionUrl"];
6868
- // import { getInfo } from 'react-mediainfo';
6869
6868
  var Dragger = antd.Upload.Dragger;
6870
6869
  var fn$2 = function fn() {
6871
6870
  return void 0;
@@ -6998,9 +6997,6 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6998
6997
  // 手动上传模式, 一直返回false
6999
6998
  var beforeUpload = function beforeUpload(file) {
7000
6999
  console.log('beforeUpload', file);
7001
- // getInfo(file).then((res: any) => {
7002
- // console.log(res);
7003
- // });
7004
7000
  var size = file.size / 1024 / 1024 < maxSize;
7005
7001
  if (value.length >= maxCount) {
7006
7002
  antd.message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u4E2A\u6587\u4EF6\uFF01"));
@@ -9430,8 +9426,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9430
9426
  interceptReceiverName: undefined,
9431
9427
  interceptReceiverMobile: undefined,
9432
9428
  interceptLogisticsStatus: undefined,
9433
- interceptLogisticsStatusOther: undefined,
9434
- interceptLogisticsSnapshot: undefined
9429
+ interceptLogisticsStatusOther: undefined
9435
9430
  });
9436
9431
  }
9437
9432
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
@@ -10726,14 +10721,12 @@ var BsExchange = function BsExchange(props) {
10726
10721
  }, []);
10727
10722
  var getListHandle = function getListHandle(list, val) {
10728
10723
  var _val$bsExchangeType, _val$bsExchangeType2;
10729
- //固定的sku
10730
- var FIXED_FIELD = ['Q0000002', '600123001', '10103003', 'Q0000003', 'Q0000004'];
10731
10724
  //如果是原单换
10732
10725
  if (['1', '3'].includes(val === null || val === void 0 ? void 0 : (_val$bsExchangeType = val.bsExchangeType) === null || _val$bsExchangeType === void 0 ? void 0 : _val$bsExchangeType[0])) {
10733
10726
  return list.reduce(function (prv, next) {
10734
10727
  next.canDelete = false;
10735
10728
  //数量大于1 拆开
10736
- if (next.number > 1 && !FIXED_FIELD.includes(next.sku)) {
10729
+ if (next.number > 1) {
10737
10730
  var newList = Array(next.number).fill({}).map(function () {
10738
10731
  var newNext = _objectSpread2({}, next);
10739
10732
  newNext.money = newNext.share;
@@ -10753,7 +10746,7 @@ var BsExchange = function BsExchange(props) {
10753
10746
  next.canDelete = true;
10754
10747
  next.index = index;
10755
10748
  //数量大于1 拆开
10756
- if (next.number > 1 && !FIXED_FIELD.includes(next.sku)) {
10749
+ if (next.number > 1) {
10757
10750
  var newList = Array(next.number).fill({}).map(function () {
10758
10751
  var newNext = _objectSpread2({}, next);
10759
10752
  newNext.money = newNext.share;
@@ -10,7 +10,6 @@ interface LogisticsInterceptionValueType {
10
10
  interceptReceiverMobile: string;
11
11
  interceptLogisticsStatus: string | number;
12
12
  interceptLogisticsStatusOther: string;
13
- interceptLogisticsSnapshot: string;
14
13
  }
15
14
  interface LogisticsInterceptionProps {
16
15
  value: Partial<LogisticsInterceptionValueType>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.8.21-alpha.3",
3
+ "version": "0.9.1-alpha.0",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,11 +20,10 @@
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",
27
- "react-mediainfo": "^0.0.42",
28
27
  "umi-request": "^1.4.0"
29
28
  },
30
29
  "devDependencies": {
@@ -61,5 +60,5 @@
61
60
  "publishConfig": {
62
61
  "access": "public"
63
62
  },
64
- "gitHead": "eac22eddf099294739d285729a552e44daf58558"
63
+ "gitHead": "8f6cf7363cbff3615cb4017dc316eb18c7f07739"
65
64
  }