@kmkf-fe-packages/basic-components 0.8.21-alpha.6 → 0.9.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.
package/dist/index.esm.js CHANGED
@@ -3,7 +3,6 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
3
3
  import { EyeOutlined, DeleteOutlined } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
- import { getInfo } from 'react-mediainfo';
7
6
  import { AddressData, BsAddressData, request as request$1, ExpressData, LogisticsAddressData, uuid } from '@kmkf-fe-packages/kmkf-utils';
8
7
  import zhCN from 'antd/lib/locale/zh_CN';
9
8
  import pubsub from 'pubsub-js';
@@ -6895,19 +6894,15 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6895
6894
  _useState8 = _slicedToArray(_useState7, 2),
6896
6895
  fileName = _useState8[0],
6897
6896
  setFileName = _useState8[1];
6898
- var _useState9 = useState({}),
6899
- _useState10 = _slicedToArray(_useState9, 2),
6900
- blackList = _useState10[0],
6901
- setBlackList = _useState10[1];
6902
6897
  var valueRef = useRef(value);
6903
- var _useState11 = useState(false),
6898
+ var _useState9 = useState(false),
6899
+ _useState10 = _slicedToArray(_useState9, 2),
6900
+ uploading = _useState10[0],
6901
+ setUploading = _useState10[1];
6902
+ var _useState11 = useState(true),
6904
6903
  _useState12 = _slicedToArray(_useState11, 2),
6905
- uploading = _useState12[0],
6906
- setUploading = _useState12[1];
6907
- var _useState13 = useState(true),
6908
- _useState14 = _slicedToArray(_useState13, 2),
6909
- pasteDefaultStates = _useState14[0],
6910
- setPasteDefaultStates = _useState14[1];
6904
+ pasteDefaultStates = _useState12[0],
6905
+ setPasteDefaultStates = _useState12[1];
6911
6906
  var fileList = useMemo(function () {
6912
6907
  return value.map(function (t, i) {
6913
6908
  return _objectSpread2(_objectSpread2({}, t), {}, {
@@ -6918,9 +6913,6 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6918
6913
  });
6919
6914
  });
6920
6915
  }, [value]);
6921
- useEffect(function () {
6922
- getVideoBlack();
6923
- }, []);
6924
6916
  useEffect(function () {
6925
6917
  valueRef.current = value;
6926
6918
  }, [value]);
@@ -6940,52 +6932,25 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6940
6932
  });
6941
6933
  };
6942
6934
  }, [pasteDefaultStates]);
6943
- //获取视频上传黑名单
6944
- var getVideoBlack = /*#__PURE__*/function () {
6945
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6946
- return _regeneratorRuntime().wrap(function _callee$(_context) {
6947
- while (1) switch (_context.prev = _context.next) {
6948
- case 0:
6949
- request('/qy/diamond/getConfigInfo', {
6950
- method: 'get',
6951
- params: {
6952
- key: 'video-upload-code',
6953
- name: 'getConfigInfo'
6954
- }
6955
- }).then(function (res) {
6956
- if (res.success && res.data) {
6957
- setBlackList(JSON.parse(res.data));
6958
- }
6959
- });
6960
- case 1:
6961
- case "end":
6962
- return _context.stop();
6963
- }
6964
- }, _callee);
6965
- }));
6966
- return function getVideoBlack() {
6967
- return _ref2.apply(this, arguments);
6968
- };
6969
- }();
6970
6935
  var asyncUpload = /*#__PURE__*/function () {
6971
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file) {
6936
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
6972
6937
  var formData, fileName, _yield$request, success, data;
6973
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
6974
- while (1) switch (_context2.prev = _context2.next) {
6938
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
6939
+ while (1) switch (_context.prev = _context.next) {
6975
6940
  case 0:
6976
6941
  setUploading(true);
6977
6942
  formData = new FormData();
6978
6943
  formData.append('file', file);
6979
6944
  fileName = "".concat(hooks(new Date().getTime()).format('YYYY-MM-DD hh:mm:ss'), "_").concat(file.name);
6980
6945
  formData.append('fileName', fileName);
6981
- _context2.prev = 5;
6982
- _context2.next = 8;
6946
+ _context.prev = 5;
6947
+ _context.next = 8;
6983
6948
  return request(actionUrl, {
6984
6949
  method: 'post',
6985
6950
  body: formData
6986
6951
  });
6987
6952
  case 8:
6988
- _yield$request = _context2.sent;
6953
+ _yield$request = _context.sent;
6989
6954
  success = _yield$request.success;
6990
6955
  data = _yield$request.data;
6991
6956
  if (success) {
@@ -6994,55 +6959,30 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6994
6959
  url: "".concat(hostUrl, "/").concat(data)
6995
6960
  }]));
6996
6961
  }
6997
- _context2.next = 17;
6962
+ _context.next = 17;
6998
6963
  break;
6999
6964
  case 14:
7000
- _context2.prev = 14;
7001
- _context2.t0 = _context2["catch"](5);
6965
+ _context.prev = 14;
6966
+ _context.t0 = _context["catch"](5);
7002
6967
  message.error('文件上传失败');
7003
6968
  case 17:
7004
- _context2.prev = 17;
6969
+ _context.prev = 17;
7005
6970
  setUploading(false);
7006
- return _context2.finish(17);
6971
+ return _context.finish(17);
7007
6972
  case 20:
7008
6973
  case "end":
7009
- return _context2.stop();
6974
+ return _context.stop();
7010
6975
  }
7011
- }, _callee2, null, [[5, 14, 17, 20]]);
6976
+ }, _callee, null, [[5, 14, 17, 20]]);
7012
6977
  }));
7013
6978
  return function asyncUpload(_x) {
7014
- return _ref3.apply(this, arguments);
6979
+ return _ref2.apply(this, arguments);
7015
6980
  };
7016
6981
  }();
7017
6982
  var handleChange = function handleChange(list) {
7018
6983
  valueRef.current = list;
7019
6984
  onChange(list);
7020
6985
  };
7021
- var verificationFormat = function verificationFormat(file) {
7022
- getInfo(file).then(function (res) {
7023
- var track = res.media.track;
7024
- console.log(res);
7025
- var videoItem = track.find(function (item) {
7026
- return item['@type'] === 'Video';
7027
- });
7028
- var generalItem = track.find(function (item) {
7029
- return item['@type'] === 'General';
7030
- });
7031
- if (videoItem && blackList[generalItem === null || generalItem === void 0 ? void 0 : generalItem.Format.toUpperCase()] && blackList[generalItem === null || generalItem === void 0 ? void 0 : generalItem.Format.toUpperCase()].includes(videoItem === null || videoItem === void 0 ? void 0 : videoItem.Format.toUpperCase())) {
7032
- Modal.confirm({
7033
- title: '提示',
7034
- content: '上传的视屏无法播放确认要上传吗?',
7035
- okText: '确定',
7036
- cancelText: '取消',
7037
- onOk: function onOk() {
7038
- asyncUpload(file);
7039
- }
7040
- });
7041
- } else {
7042
- asyncUpload(file);
7043
- }
7044
- });
7045
- };
7046
6986
  // 手动上传模式, 一直返回false
7047
6987
  var beforeUpload = function beforeUpload(file) {
7048
6988
  console.log('beforeUpload', file);
@@ -7055,8 +6995,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
7055
6995
  message.error("\u6587\u4EF6\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
7056
6996
  return Upload.LIST_IGNORE;
7057
6997
  }
7058
- verificationFormat(file);
7059
- // asyncUpload(file);
6998
+ asyncUpload(file);
7060
6999
  return Upload.LIST_IGNORE;
7061
7000
  };
7062
7001
  var onRemove = function onRemove(file) {
@@ -7117,24 +7056,24 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
7117
7056
  return;
7118
7057
  }
7119
7058
  reader.onload = /*#__PURE__*/function () {
7120
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e) {
7059
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
7121
7060
  var _e$target;
7122
7061
  var result, fileName, file;
7123
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
7124
- while (1) switch (_context3.prev = _context3.next) {
7062
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7063
+ while (1) switch (_context2.prev = _context2.next) {
7125
7064
  case 0:
7126
7065
  result = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.result;
7127
7066
  fileName = blob.name;
7128
- file = dataURLtoFile(result, fileName); // asyncUpload(file);
7129
- verificationFormat(file);
7067
+ file = dataURLtoFile(result, fileName);
7068
+ asyncUpload(file);
7130
7069
  case 4:
7131
7070
  case "end":
7132
- return _context3.stop();
7071
+ return _context2.stop();
7133
7072
  }
7134
- }, _callee3);
7073
+ }, _callee2);
7135
7074
  }));
7136
7075
  return function (_x2) {
7137
- return _ref4.apply(this, arguments);
7076
+ return _ref3.apply(this, arguments);
7138
7077
  };
7139
7078
  }();
7140
7079
  reader.readAsDataURL(blob);
@@ -9476,8 +9415,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9476
9415
  interceptReceiverName: undefined,
9477
9416
  interceptReceiverMobile: undefined,
9478
9417
  interceptLogisticsStatus: undefined,
9479
- interceptLogisticsStatusOther: undefined,
9480
- interceptLogisticsSnapshot: undefined
9418
+ interceptLogisticsStatusOther: undefined
9481
9419
  });
9482
9420
  }
9483
9421
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
@@ -10772,14 +10710,12 @@ var BsExchange = function BsExchange(props) {
10772
10710
  }, []);
10773
10711
  var getListHandle = function getListHandle(list, val) {
10774
10712
  var _val$bsExchangeType, _val$bsExchangeType2;
10775
- //固定的sku
10776
- var FIXED_FIELD = ['Q0000002', '600123001', '10103003', 'Q0000003', 'Q0000004'];
10777
10713
  //如果是原单换
10778
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])) {
10779
10715
  return list.reduce(function (prv, next) {
10780
10716
  next.canDelete = false;
10781
10717
  //数量大于1 拆开
10782
- if (next.number > 1 && !FIXED_FIELD.includes(next.sku)) {
10718
+ if (next.number > 1) {
10783
10719
  var newList = Array(next.number).fill({}).map(function () {
10784
10720
  var newNext = _objectSpread2({}, next);
10785
10721
  newNext.money = newNext.share;
@@ -10799,7 +10735,7 @@ var BsExchange = function BsExchange(props) {
10799
10735
  next.canDelete = true;
10800
10736
  next.index = index;
10801
10737
  //数量大于1 拆开
10802
- if (next.number > 1 && !FIXED_FIELD.includes(next.sku)) {
10738
+ if (next.number > 1) {
10803
10739
  var newList = Array(next.number).fill({}).map(function () {
10804
10740
  var newNext = _objectSpread2({}, next);
10805
10741
  newNext.money = newNext.share;
package/dist/index.js CHANGED
@@ -7,7 +7,6 @@ var antd = require('antd');
7
7
  var icons = require('@ant-design/icons');
8
8
  var request = require('umi-request');
9
9
  var reactCopyToClipboard = require('react-copy-to-clipboard');
10
- var reactMediainfo = require('react-mediainfo');
11
10
  var kmkfUtils = require('@kmkf-fe-packages/kmkf-utils');
12
11
  var zhCN = require('antd/lib/locale/zh_CN');
13
12
  var pubsub = require('pubsub-js');
@@ -6906,19 +6905,15 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6906
6905
  _useState8 = _slicedToArray(_useState7, 2),
6907
6906
  fileName = _useState8[0],
6908
6907
  setFileName = _useState8[1];
6909
- var _useState9 = React.useState({}),
6910
- _useState10 = _slicedToArray(_useState9, 2),
6911
- blackList = _useState10[0],
6912
- setBlackList = _useState10[1];
6913
6908
  var valueRef = React.useRef(value);
6914
- var _useState11 = React.useState(false),
6909
+ var _useState9 = React.useState(false),
6910
+ _useState10 = _slicedToArray(_useState9, 2),
6911
+ uploading = _useState10[0],
6912
+ setUploading = _useState10[1];
6913
+ var _useState11 = React.useState(true),
6915
6914
  _useState12 = _slicedToArray(_useState11, 2),
6916
- uploading = _useState12[0],
6917
- setUploading = _useState12[1];
6918
- var _useState13 = React.useState(true),
6919
- _useState14 = _slicedToArray(_useState13, 2),
6920
- pasteDefaultStates = _useState14[0],
6921
- setPasteDefaultStates = _useState14[1];
6915
+ pasteDefaultStates = _useState12[0],
6916
+ setPasteDefaultStates = _useState12[1];
6922
6917
  var fileList = React.useMemo(function () {
6923
6918
  return value.map(function (t, i) {
6924
6919
  return _objectSpread2(_objectSpread2({}, t), {}, {
@@ -6929,9 +6924,6 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6929
6924
  });
6930
6925
  });
6931
6926
  }, [value]);
6932
- React.useEffect(function () {
6933
- getVideoBlack();
6934
- }, []);
6935
6927
  React.useEffect(function () {
6936
6928
  valueRef.current = value;
6937
6929
  }, [value]);
@@ -6951,52 +6943,25 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6951
6943
  });
6952
6944
  };
6953
6945
  }, [pasteDefaultStates]);
6954
- //获取视频上传黑名单
6955
- var getVideoBlack = /*#__PURE__*/function () {
6956
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
6957
- return _regeneratorRuntime().wrap(function _callee$(_context) {
6958
- while (1) switch (_context.prev = _context.next) {
6959
- case 0:
6960
- request__default['default']('/qy/diamond/getConfigInfo', {
6961
- method: 'get',
6962
- params: {
6963
- key: 'video-upload-code',
6964
- name: 'getConfigInfo'
6965
- }
6966
- }).then(function (res) {
6967
- if (res.success && res.data) {
6968
- setBlackList(JSON.parse(res.data));
6969
- }
6970
- });
6971
- case 1:
6972
- case "end":
6973
- return _context.stop();
6974
- }
6975
- }, _callee);
6976
- }));
6977
- return function getVideoBlack() {
6978
- return _ref2.apply(this, arguments);
6979
- };
6980
- }();
6981
6946
  var asyncUpload = /*#__PURE__*/function () {
6982
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file) {
6947
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
6983
6948
  var formData, fileName, _yield$request, success, data;
6984
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
6985
- while (1) switch (_context2.prev = _context2.next) {
6949
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
6950
+ while (1) switch (_context.prev = _context.next) {
6986
6951
  case 0:
6987
6952
  setUploading(true);
6988
6953
  formData = new FormData();
6989
6954
  formData.append('file', file);
6990
6955
  fileName = "".concat(hooks(new Date().getTime()).format('YYYY-MM-DD hh:mm:ss'), "_").concat(file.name);
6991
6956
  formData.append('fileName', fileName);
6992
- _context2.prev = 5;
6993
- _context2.next = 8;
6957
+ _context.prev = 5;
6958
+ _context.next = 8;
6994
6959
  return request__default['default'](actionUrl, {
6995
6960
  method: 'post',
6996
6961
  body: formData
6997
6962
  });
6998
6963
  case 8:
6999
- _yield$request = _context2.sent;
6964
+ _yield$request = _context.sent;
7000
6965
  success = _yield$request.success;
7001
6966
  data = _yield$request.data;
7002
6967
  if (success) {
@@ -7005,55 +6970,30 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
7005
6970
  url: "".concat(hostUrl, "/").concat(data)
7006
6971
  }]));
7007
6972
  }
7008
- _context2.next = 17;
6973
+ _context.next = 17;
7009
6974
  break;
7010
6975
  case 14:
7011
- _context2.prev = 14;
7012
- _context2.t0 = _context2["catch"](5);
6976
+ _context.prev = 14;
6977
+ _context.t0 = _context["catch"](5);
7013
6978
  antd.message.error('文件上传失败');
7014
6979
  case 17:
7015
- _context2.prev = 17;
6980
+ _context.prev = 17;
7016
6981
  setUploading(false);
7017
- return _context2.finish(17);
6982
+ return _context.finish(17);
7018
6983
  case 20:
7019
6984
  case "end":
7020
- return _context2.stop();
6985
+ return _context.stop();
7021
6986
  }
7022
- }, _callee2, null, [[5, 14, 17, 20]]);
6987
+ }, _callee, null, [[5, 14, 17, 20]]);
7023
6988
  }));
7024
6989
  return function asyncUpload(_x) {
7025
- return _ref3.apply(this, arguments);
6990
+ return _ref2.apply(this, arguments);
7026
6991
  };
7027
6992
  }();
7028
6993
  var handleChange = function handleChange(list) {
7029
6994
  valueRef.current = list;
7030
6995
  onChange(list);
7031
6996
  };
7032
- var verificationFormat = function verificationFormat(file) {
7033
- reactMediainfo.getInfo(file).then(function (res) {
7034
- var track = res.media.track;
7035
- console.log(res);
7036
- var videoItem = track.find(function (item) {
7037
- return item['@type'] === 'Video';
7038
- });
7039
- var generalItem = track.find(function (item) {
7040
- return item['@type'] === 'General';
7041
- });
7042
- if (videoItem && blackList[generalItem === null || generalItem === void 0 ? void 0 : generalItem.Format.toUpperCase()] && blackList[generalItem === null || generalItem === void 0 ? void 0 : generalItem.Format.toUpperCase()].includes(videoItem === null || videoItem === void 0 ? void 0 : videoItem.Format.toUpperCase())) {
7043
- antd.Modal.confirm({
7044
- title: '提示',
7045
- content: '上传的视屏无法播放确认要上传吗?',
7046
- okText: '确定',
7047
- cancelText: '取消',
7048
- onOk: function onOk() {
7049
- asyncUpload(file);
7050
- }
7051
- });
7052
- } else {
7053
- asyncUpload(file);
7054
- }
7055
- });
7056
- };
7057
6997
  // 手动上传模式, 一直返回false
7058
6998
  var beforeUpload = function beforeUpload(file) {
7059
6999
  console.log('beforeUpload', file);
@@ -7066,8 +7006,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
7066
7006
  antd.message.error("\u6587\u4EF6\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
7067
7007
  return antd.Upload.LIST_IGNORE;
7068
7008
  }
7069
- verificationFormat(file);
7070
- // asyncUpload(file);
7009
+ asyncUpload(file);
7071
7010
  return antd.Upload.LIST_IGNORE;
7072
7011
  };
7073
7012
  var onRemove = function onRemove(file) {
@@ -7128,24 +7067,24 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
7128
7067
  return;
7129
7068
  }
7130
7069
  reader.onload = /*#__PURE__*/function () {
7131
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e) {
7070
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
7132
7071
  var _e$target;
7133
7072
  var result, fileName, file;
7134
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
7135
- while (1) switch (_context3.prev = _context3.next) {
7073
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7074
+ while (1) switch (_context2.prev = _context2.next) {
7136
7075
  case 0:
7137
7076
  result = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.result;
7138
7077
  fileName = blob.name;
7139
- file = dataURLtoFile(result, fileName); // asyncUpload(file);
7140
- verificationFormat(file);
7078
+ file = dataURLtoFile(result, fileName);
7079
+ asyncUpload(file);
7141
7080
  case 4:
7142
7081
  case "end":
7143
- return _context3.stop();
7082
+ return _context2.stop();
7144
7083
  }
7145
- }, _callee3);
7084
+ }, _callee2);
7146
7085
  }));
7147
7086
  return function (_x2) {
7148
- return _ref4.apply(this, arguments);
7087
+ return _ref3.apply(this, arguments);
7149
7088
  };
7150
7089
  }();
7151
7090
  reader.readAsDataURL(blob);
@@ -9487,8 +9426,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9487
9426
  interceptReceiverName: undefined,
9488
9427
  interceptReceiverMobile: undefined,
9489
9428
  interceptLogisticsStatus: undefined,
9490
- interceptLogisticsStatusOther: undefined,
9491
- interceptLogisticsSnapshot: undefined
9429
+ interceptLogisticsStatusOther: undefined
9492
9430
  });
9493
9431
  }
9494
9432
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
@@ -10783,14 +10721,12 @@ var BsExchange = function BsExchange(props) {
10783
10721
  }, []);
10784
10722
  var getListHandle = function getListHandle(list, val) {
10785
10723
  var _val$bsExchangeType, _val$bsExchangeType2;
10786
- //固定的sku
10787
- var FIXED_FIELD = ['Q0000002', '600123001', '10103003', 'Q0000003', 'Q0000004'];
10788
10724
  //如果是原单换
10789
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])) {
10790
10726
  return list.reduce(function (prv, next) {
10791
10727
  next.canDelete = false;
10792
10728
  //数量大于1 拆开
10793
- if (next.number > 1 && !FIXED_FIELD.includes(next.sku)) {
10729
+ if (next.number > 1) {
10794
10730
  var newList = Array(next.number).fill({}).map(function () {
10795
10731
  var newNext = _objectSpread2({}, next);
10796
10732
  newNext.money = newNext.share;
@@ -10810,7 +10746,7 @@ var BsExchange = function BsExchange(props) {
10810
10746
  next.canDelete = true;
10811
10747
  next.index = index;
10812
10748
  //数量大于1 拆开
10813
- if (next.number > 1 && !FIXED_FIELD.includes(next.sku)) {
10749
+ if (next.number > 1) {
10814
10750
  var newList = Array(next.number).fill({}).map(function () {
10815
10751
  var newNext = _objectSpread2({}, next);
10816
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.6",
3
+ "version": "0.9.1",
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": "a57e346b9c807660ebff73b66aa286488ba1d552"
63
+ "gitHead": "27f5904628141eb379d81b7bd8877c46c2634a57"
65
64
  }