@kmkf-fe-packages/basic-components 0.13.0-beta.1 → 0.13.0-beta.11

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
@@ -618,7 +618,7 @@ var ApaasUpload = function ApaasUpload(_ref) {
618
618
  _ref$accept = _ref.accept,
619
619
  accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
620
620
  _ref$canPreview = _ref.canPreview,
621
- canPreview = _ref$canPreview === void 0 ? false : _ref$canPreview,
621
+ canPreview = _ref$canPreview === void 0 ? true : _ref$canPreview,
622
622
  _ref$disabled = _ref.disabled,
623
623
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
624
624
  resetProps = _objectWithoutProperties(_ref, _excluded$4);
@@ -789,7 +789,7 @@ var ApaasUpload = function ApaasUpload(_ref) {
789
789
  className: styles.upload,
790
790
  beforeUpload: beforeUpload
791
791
  }, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
792
- className: 'addBtn'
792
+ className: "addBtn"
793
793
  }, "+"), /*#__PURE__*/React.createElement("div", null, uploadText))), /*#__PURE__*/React.createElement(Image, {
794
794
  width: 0,
795
795
  style: {
@@ -913,7 +913,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref) {
913
913
  _ref$accept = _ref.accept,
914
914
  accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
915
915
  _ref$canPreview = _ref.canPreview,
916
- canPreview = _ref$canPreview === void 0 ? false : _ref$canPreview,
916
+ canPreview = _ref$canPreview === void 0 ? true : _ref$canPreview,
917
917
  _ref$disabled = _ref.disabled,
918
918
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
919
919
  uniqueKey = _ref.uniqueKey,
@@ -6853,12 +6853,12 @@ hooks.HTML5_FMT = {
6853
6853
  MONTH: 'YYYY-MM', // <input type="month" />
6854
6854
  };
6855
6855
 
6856
- var _excluded$7 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "uniqueKey", "hostUrl", "canDownload", "actionUrl", "platform"];
6856
+ var _excluded$7 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "hostUrl", "canDownload", "actionUrl", "platform"];
6857
6857
  var Dragger = Upload.Dragger;
6858
6858
  var fn$2 = function fn() {
6859
6859
  return void 0;
6860
6860
  };
6861
- var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6861
+ var ApaasUploadFile = function ApaasUploadFile(_ref) {
6862
6862
  var _ref$maxCount = _ref.maxCount,
6863
6863
  maxCount = _ref$maxCount === void 0 ? 10 : _ref$maxCount,
6864
6864
  _ref$maxSize = _ref.maxSize,
@@ -6871,7 +6871,6 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6871
6871
  accept = _ref$accept === void 0 ? '' : _ref$accept,
6872
6872
  _ref$disabled = _ref.disabled,
6873
6873
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
6874
- uniqueKey = _ref.uniqueKey,
6875
6874
  _ref$hostUrl = _ref.hostUrl,
6876
6875
  hostUrl = _ref$hostUrl === void 0 ? '' : _ref$hostUrl,
6877
6876
  _ref$canDownload = _ref.canDownload,
@@ -6897,7 +6896,6 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6897
6896
  _useState8 = _slicedToArray(_useState7, 2),
6898
6897
  fileName = _useState8[0],
6899
6898
  setFileName = _useState8[1];
6900
- // const [blackList, setBlackList] = useState<any>({});
6901
6899
  var valueRef = useRef(value);
6902
6900
  var _useState9 = useState(false),
6903
6901
  _useState10 = _slicedToArray(_useState9, 2),
@@ -6910,16 +6908,11 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6910
6908
  var fileList = useMemo(function () {
6911
6909
  return value.map(function (t, i) {
6912
6910
  return _objectSpread2(_objectSpread2({}, t), {}, {
6913
- // status: 'success',
6914
6911
  percent: 100,
6915
6912
  uid: i + ''
6916
- // name: ,
6917
6913
  });
6918
6914
  });
6919
6915
  }, [value]);
6920
- // useEffect(() => {
6921
- // getVideoBlack();
6922
- // }, []);
6923
6916
  useEffect(function () {
6924
6917
  valueRef.current = value;
6925
6918
  }, [value]);
@@ -6939,20 +6932,6 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6939
6932
  });
6940
6933
  };
6941
6934
  }, [pasteDefaultStates]);
6942
- //获取视频上传黑名单
6943
- // const getVideoBlack = async () => {
6944
- // request('/qy/diamond/getConfigInfo', {
6945
- // method: 'get',
6946
- // params: {
6947
- // key: 'video-upload-code',
6948
- // name: 'getConfigInfo',
6949
- // },
6950
- // }).then((res) => {
6951
- // if (res.success && res.data) {
6952
- // setBlackList(JSON.parse(res.data));
6953
- // }
6954
- // });
6955
- // };
6956
6935
  var asyncUpload = /*#__PURE__*/function () {
6957
6936
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
6958
6937
  var formData, fileName, _yield$request, success, data;
@@ -7019,46 +6998,9 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
7019
6998
  valueRef.current = list;
7020
6999
  onChange(list);
7021
7000
  };
7022
- // const verificationFormat = async (file: any) => {
7023
- // //飞鸽端不支持worker没有办法使用react-mediainfo插件
7024
- // if (platform !== 'fxg') {
7025
- // const { getInfo } = await require('react-mediainfo');
7026
- // getInfo(file).then((res: any) => {
7027
- // const {
7028
- // media: { track },
7029
- // } = res;
7030
- // console.log(res);
7031
- // const videoItem = track.find((item: any) => item['@type'] === 'Video');
7032
- // const generalItem = track.find(
7033
- // (item: any) => item['@type'] === 'General',
7034
- // );
7035
- // if (
7036
- // videoItem &&
7037
- // blackList[generalItem?.Format.toUpperCase()] &&
7038
- // blackList[generalItem?.Format.toUpperCase()].includes(
7039
- // videoItem?.Format.toUpperCase(),
7040
- // )
7041
- // ) {
7042
- // Modal.confirm({
7043
- // title: '提示',
7044
- // content: '上传的视频可能无法播放,确认要上传吗?',
7045
- // okText: '确定',
7046
- // cancelText: '取消',
7047
- // onOk: () => {
7048
- // asyncUpload(file);
7049
- // },
7050
- // });
7051
- // } else {
7052
- // asyncUpload(file);
7053
- // }
7054
- // });
7055
- // } else {
7056
- // asyncUpload(file);
7057
- // }
7058
- // };
7059
7001
  // 手动上传模式, 一直返回false
7060
7002
  var beforeUpload = function beforeUpload(file) {
7061
- console.log('beforeUpload', file);
7003
+ // console.log('beforeUpload', file);
7062
7004
  var size = file.size / 1024 / 1024 < maxSize;
7063
7005
  if (value.length >= maxCount) {
7064
7006
  message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u4E2A\u6587\u4EF6\uFF01"));
@@ -7068,7 +7010,6 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
7068
7010
  message.error("\u6587\u4EF6\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
7069
7011
  return Upload.LIST_IGNORE;
7070
7012
  }
7071
- // verificationFormat(file);
7072
7013
  asyncUpload(file);
7073
7014
  return Upload.LIST_IGNORE;
7074
7015
  };
@@ -11831,7 +11772,7 @@ function CommonStatus(props) {
11831
11772
  reason: failValue === val ? '' : value === null || value === void 0 ? void 0 : value.reason
11832
11773
  });
11833
11774
  };
11834
- return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
11775
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
11835
11776
  showSearch: true,
11836
11777
  value: value === null || value === void 0 ? void 0 : value.status,
11837
11778
  filterOption: function filterOption(input, option) {
@@ -11839,7 +11780,9 @@ function CommonStatus(props) {
11839
11780
  }
11840
11781
  }, other), {}, {
11841
11782
  onChange: changeHandle
11842
- }));
11783
+ })), (value === null || value === void 0 ? void 0 : value.reason) ? /*#__PURE__*/React.createElement("div", {
11784
+ className: "c-red"
11785
+ }, "\u5931\u8D25\u539F\u56E0\uFF1A", value === null || value === void 0 ? void 0 : value.reason) : null);
11843
11786
  }
11844
11787
 
11845
11788
  var CommonSystemOrder = function CommonSystemOrder(props) {
@@ -11865,7 +11808,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11865
11808
  maxHeight: '300px',
11866
11809
  overflowY: 'auto'
11867
11810
  }
11868
- }, type === 1 ? /*#__PURE__*/React.createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
11811
+ }, [1, 2, 3, 4].includes(type) ? /*#__PURE__*/React.createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
11869
11812
  };
11870
11813
  var changeInputHandle = function changeInputHandle(val, type) {
11871
11814
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
@@ -11914,20 +11857,20 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11914
11857
  onChange: function onChange(e) {
11915
11858
  return changeInputHandle(e.target.value, 'reissueTradeId');
11916
11859
  },
11917
- value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.tradeId
11860
+ value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.billNo
11918
11861
  })) : null, type === 4 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
11919
11862
  disabled: true,
11920
11863
  placeholder: "\u8BF7\u8F93\u5165\u6362\u8D27\u5355id",
11921
11864
  onChange: function onChange(e) {
11922
11865
  return changeInputHandle(e.target.value, 'exchangeTradeId');
11923
11866
  },
11924
- value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.tradeId
11867
+ value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.billNo
11925
11868
  })) : null) : null);
11926
11869
  };
11927
11870
 
11928
11871
  var _excluded$h = ["value", "onChange", "disabled", "failValue", "type"];
11929
11872
  var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11930
- var _value$changeIndex;
11873
+ var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
11931
11874
  var _props$value = props.value,
11932
11875
  value = _props$value === void 0 ? [] : _props$value,
11933
11876
  onChange = props.onChange,
@@ -11951,7 +11894,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11951
11894
  maxHeight: '300px',
11952
11895
  overflowY: 'auto'
11953
11896
  }
11954
- }, type === 1 ? /*#__PURE__*/React.createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
11897
+ }, [1, 2].includes(type) ? /*#__PURE__*/React.createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
11955
11898
  };
11956
11899
  var changeHandle = function changeHandle(val, valType) {
11957
11900
  console.log(val, valType);
@@ -11997,7 +11940,9 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11997
11940
  onChange: function onChange(val) {
11998
11941
  return changeHandle(val, 'status');
11999
11942
  }
12000
- })))) : null);
11943
+ }))), ((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.reason) ? /*#__PURE__*/React.createElement("div", {
11944
+ className: "c-red"
11945
+ }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
12001
11946
  };
12002
11947
 
12003
11948
  var CalculationInput = function CalculationInput(props) {
@@ -12018,4 +11963,4 @@ var CalculationInput = function CalculationInput(props) {
12018
11963
  }, config === null || config === void 0 ? void 0 : config.unit));
12019
11964
  };
12020
11965
 
12021
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync, ApaasUploadAsync$1 as ApaasUploadFile, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonSystemOrder$1 as CommonMultiStatus, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$1 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsTrajectory, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId, WlnGoods };
11966
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync, ApaasUploadFile, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonSystemOrder$1 as CommonMultiStatus, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$1 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsTrajectory, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId, WlnGoods };
package/dist/index.js CHANGED
@@ -629,7 +629,7 @@ var ApaasUpload = function ApaasUpload(_ref) {
629
629
  _ref$accept = _ref.accept,
630
630
  accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
631
631
  _ref$canPreview = _ref.canPreview,
632
- canPreview = _ref$canPreview === void 0 ? false : _ref$canPreview,
632
+ canPreview = _ref$canPreview === void 0 ? true : _ref$canPreview,
633
633
  _ref$disabled = _ref.disabled,
634
634
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
635
635
  resetProps = _objectWithoutProperties(_ref, _excluded$4);
@@ -800,7 +800,7 @@ var ApaasUpload = function ApaasUpload(_ref) {
800
800
  className: styles.upload,
801
801
  beforeUpload: beforeUpload
802
802
  }, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("span", {
803
- className: 'addBtn'
803
+ className: "addBtn"
804
804
  }, "+"), /*#__PURE__*/React__default['default'].createElement("div", null, uploadText))), /*#__PURE__*/React__default['default'].createElement(antd.Image, {
805
805
  width: 0,
806
806
  style: {
@@ -924,7 +924,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref) {
924
924
  _ref$accept = _ref.accept,
925
925
  accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
926
926
  _ref$canPreview = _ref.canPreview,
927
- canPreview = _ref$canPreview === void 0 ? false : _ref$canPreview,
927
+ canPreview = _ref$canPreview === void 0 ? true : _ref$canPreview,
928
928
  _ref$disabled = _ref.disabled,
929
929
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
930
930
  uniqueKey = _ref.uniqueKey,
@@ -6864,12 +6864,12 @@ hooks.HTML5_FMT = {
6864
6864
  MONTH: 'YYYY-MM', // <input type="month" />
6865
6865
  };
6866
6866
 
6867
- var _excluded$7 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "uniqueKey", "hostUrl", "canDownload", "actionUrl", "platform"];
6867
+ var _excluded$7 = ["maxCount", "maxSize", "onChange", "value", "accept", "disabled", "hostUrl", "canDownload", "actionUrl", "platform"];
6868
6868
  var Dragger = antd.Upload.Dragger;
6869
6869
  var fn$2 = function fn() {
6870
6870
  return void 0;
6871
6871
  };
6872
- var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6872
+ var ApaasUploadFile = function ApaasUploadFile(_ref) {
6873
6873
  var _ref$maxCount = _ref.maxCount,
6874
6874
  maxCount = _ref$maxCount === void 0 ? 10 : _ref$maxCount,
6875
6875
  _ref$maxSize = _ref.maxSize,
@@ -6882,7 +6882,6 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6882
6882
  accept = _ref$accept === void 0 ? '' : _ref$accept,
6883
6883
  _ref$disabled = _ref.disabled,
6884
6884
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
6885
- uniqueKey = _ref.uniqueKey,
6886
6885
  _ref$hostUrl = _ref.hostUrl,
6887
6886
  hostUrl = _ref$hostUrl === void 0 ? '' : _ref$hostUrl,
6888
6887
  _ref$canDownload = _ref.canDownload,
@@ -6908,7 +6907,6 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6908
6907
  _useState8 = _slicedToArray(_useState7, 2),
6909
6908
  fileName = _useState8[0],
6910
6909
  setFileName = _useState8[1];
6911
- // const [blackList, setBlackList] = useState<any>({});
6912
6910
  var valueRef = React.useRef(value);
6913
6911
  var _useState9 = React.useState(false),
6914
6912
  _useState10 = _slicedToArray(_useState9, 2),
@@ -6921,16 +6919,11 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6921
6919
  var fileList = React.useMemo(function () {
6922
6920
  return value.map(function (t, i) {
6923
6921
  return _objectSpread2(_objectSpread2({}, t), {}, {
6924
- // status: 'success',
6925
6922
  percent: 100,
6926
6923
  uid: i + ''
6927
- // name: ,
6928
6924
  });
6929
6925
  });
6930
6926
  }, [value]);
6931
- // useEffect(() => {
6932
- // getVideoBlack();
6933
- // }, []);
6934
6927
  React.useEffect(function () {
6935
6928
  valueRef.current = value;
6936
6929
  }, [value]);
@@ -6950,20 +6943,6 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6950
6943
  });
6951
6944
  };
6952
6945
  }, [pasteDefaultStates]);
6953
- //获取视频上传黑名单
6954
- // const getVideoBlack = async () => {
6955
- // request('/qy/diamond/getConfigInfo', {
6956
- // method: 'get',
6957
- // params: {
6958
- // key: 'video-upload-code',
6959
- // name: 'getConfigInfo',
6960
- // },
6961
- // }).then((res) => {
6962
- // if (res.success && res.data) {
6963
- // setBlackList(JSON.parse(res.data));
6964
- // }
6965
- // });
6966
- // };
6967
6946
  var asyncUpload = /*#__PURE__*/function () {
6968
6947
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
6969
6948
  var formData, fileName, _yield$request, success, data;
@@ -7030,46 +7009,9 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
7030
7009
  valueRef.current = list;
7031
7010
  onChange(list);
7032
7011
  };
7033
- // const verificationFormat = async (file: any) => {
7034
- // //飞鸽端不支持worker没有办法使用react-mediainfo插件
7035
- // if (platform !== 'fxg') {
7036
- // const { getInfo } = await require('react-mediainfo');
7037
- // getInfo(file).then((res: any) => {
7038
- // const {
7039
- // media: { track },
7040
- // } = res;
7041
- // console.log(res);
7042
- // const videoItem = track.find((item: any) => item['@type'] === 'Video');
7043
- // const generalItem = track.find(
7044
- // (item: any) => item['@type'] === 'General',
7045
- // );
7046
- // if (
7047
- // videoItem &&
7048
- // blackList[generalItem?.Format.toUpperCase()] &&
7049
- // blackList[generalItem?.Format.toUpperCase()].includes(
7050
- // videoItem?.Format.toUpperCase(),
7051
- // )
7052
- // ) {
7053
- // Modal.confirm({
7054
- // title: '提示',
7055
- // content: '上传的视频可能无法播放,确认要上传吗?',
7056
- // okText: '确定',
7057
- // cancelText: '取消',
7058
- // onOk: () => {
7059
- // asyncUpload(file);
7060
- // },
7061
- // });
7062
- // } else {
7063
- // asyncUpload(file);
7064
- // }
7065
- // });
7066
- // } else {
7067
- // asyncUpload(file);
7068
- // }
7069
- // };
7070
7012
  // 手动上传模式, 一直返回false
7071
7013
  var beforeUpload = function beforeUpload(file) {
7072
- console.log('beforeUpload', file);
7014
+ // console.log('beforeUpload', file);
7073
7015
  var size = file.size / 1024 / 1024 < maxSize;
7074
7016
  if (value.length >= maxCount) {
7075
7017
  antd.message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u4E2A\u6587\u4EF6\uFF01"));
@@ -7079,7 +7021,6 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
7079
7021
  antd.message.error("\u6587\u4EF6\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
7080
7022
  return antd.Upload.LIST_IGNORE;
7081
7023
  }
7082
- // verificationFormat(file);
7083
7024
  asyncUpload(file);
7084
7025
  return antd.Upload.LIST_IGNORE;
7085
7026
  };
@@ -11842,7 +11783,7 @@ function CommonStatus(props) {
11842
11783
  reason: failValue === val ? '' : value === null || value === void 0 ? void 0 : value.reason
11843
11784
  });
11844
11785
  };
11845
- return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
11786
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
11846
11787
  showSearch: true,
11847
11788
  value: value === null || value === void 0 ? void 0 : value.status,
11848
11789
  filterOption: function filterOption(input, option) {
@@ -11850,7 +11791,9 @@ function CommonStatus(props) {
11850
11791
  }
11851
11792
  }, other), {}, {
11852
11793
  onChange: changeHandle
11853
- }));
11794
+ })), (value === null || value === void 0 ? void 0 : value.reason) ? /*#__PURE__*/React__default['default'].createElement("div", {
11795
+ className: "c-red"
11796
+ }, "\u5931\u8D25\u539F\u56E0\uFF1A", value === null || value === void 0 ? void 0 : value.reason) : null);
11854
11797
  }
11855
11798
 
11856
11799
  var CommonSystemOrder = function CommonSystemOrder(props) {
@@ -11876,7 +11819,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11876
11819
  maxHeight: '300px',
11877
11820
  overflowY: 'auto'
11878
11821
  }
11879
- }, type === 1 ? /*#__PURE__*/React__default['default'].createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
11822
+ }, [1, 2, 3, 4].includes(type) ? /*#__PURE__*/React__default['default'].createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
11880
11823
  };
11881
11824
  var changeInputHandle = function changeInputHandle(val, type) {
11882
11825
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
@@ -11925,20 +11868,20 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11925
11868
  onChange: function onChange(e) {
11926
11869
  return changeInputHandle(e.target.value, 'reissueTradeId');
11927
11870
  },
11928
- value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.tradeId
11871
+ value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.billNo
11929
11872
  })) : null, type === 4 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
11930
11873
  disabled: true,
11931
11874
  placeholder: "\u8BF7\u8F93\u5165\u6362\u8D27\u5355id",
11932
11875
  onChange: function onChange(e) {
11933
11876
  return changeInputHandle(e.target.value, 'exchangeTradeId');
11934
11877
  },
11935
- value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.tradeId
11878
+ value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.billNo
11936
11879
  })) : null) : null);
11937
11880
  };
11938
11881
 
11939
11882
  var _excluded$h = ["value", "onChange", "disabled", "failValue", "type"];
11940
11883
  var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11941
- var _value$changeIndex;
11884
+ var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
11942
11885
  var _props$value = props.value,
11943
11886
  value = _props$value === void 0 ? [] : _props$value,
11944
11887
  onChange = props.onChange,
@@ -11962,7 +11905,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11962
11905
  maxHeight: '300px',
11963
11906
  overflowY: 'auto'
11964
11907
  }
11965
- }, type === 1 ? /*#__PURE__*/React__default['default'].createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
11908
+ }, [1, 2].includes(type) ? /*#__PURE__*/React__default['default'].createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
11966
11909
  };
11967
11910
  var changeHandle = function changeHandle(val, valType) {
11968
11911
  console.log(val, valType);
@@ -12008,7 +11951,9 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
12008
11951
  onChange: function onChange(val) {
12009
11952
  return changeHandle(val, 'status');
12010
11953
  }
12011
- })))) : null);
11954
+ }))), ((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.reason) ? /*#__PURE__*/React__default['default'].createElement("div", {
11955
+ className: "c-red"
11956
+ }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
12012
11957
  };
12013
11958
 
12014
11959
  var CalculationInput = function CalculationInput(props) {
@@ -12048,7 +11993,7 @@ exports.ApaasSlider = ApaasSlider;
12048
11993
  exports.ApaasTextArea = ApaasTextArea;
12049
11994
  exports.ApaasUpload = ApaasUpload;
12050
11995
  exports.ApaasUploadAsync = ApaasUploadAsync;
12051
- exports.ApaasUploadFile = ApaasUploadAsync$1;
11996
+ exports.ApaasUploadFile = ApaasUploadFile;
12052
11997
  exports.BsExchange = BsExchange;
12053
11998
  exports.BsGoods = BsGoods;
12054
11999
  exports.BsReissue = BsReissue;
@@ -8,15 +8,13 @@ export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'
8
8
  maxCount?: number;
9
9
  maxSize?: number;
10
10
  uploadText?: string;
11
- canPreview?: boolean;
12
11
  disabled?: boolean;
13
12
  onChange?: (value: UploadValue) => void;
14
13
  value?: UploadValue;
15
- uniqueKey?: string;
16
14
  hostUrl?: string;
17
15
  actionUrl?: string;
18
16
  platform?: string;
19
17
  canDownload?: boolean;
20
18
  }
21
- declare const ApaasUploadAsync: ({ maxCount, maxSize, onChange, value, accept, disabled, uniqueKey, hostUrl, canDownload, actionUrl, platform, ...resetProps }: ApaasUploadProps) => React.JSX.Element;
22
- export default ApaasUploadAsync;
19
+ declare const ApaasUploadFile: ({ maxCount, maxSize, onChange, value, accept, disabled, hostUrl, canDownload, actionUrl, platform, ...resetProps }: ApaasUploadProps) => React.JSX.Element;
20
+ export default ApaasUploadFile;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.13.0-beta.1",
3
+ "version": "0.13.0-beta.11",
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.13.0-beta.1",
23
+ "@kmkf-fe-packages/kmkf-utils": "^0.13.0-beta.11",
24
24
  "lodash": "^4.17.21",
25
25
  "pubsub-js": "^1.9.4",
26
26
  "react-copy-to-clipboard": "^5.1.0",
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "7c987839411d1247558e6d245d82c8a38e0608db"
64
+ "gitHead": "c0c59e82d5e9a3b06243529f865d70f4bbbeb524"
65
65
  }