@kmkf-fe-packages/basic-components 0.6.3-alpha.15 → 0.6.3-alpha.21

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
@@ -579,8 +579,8 @@ var styles = {"imageBox":"index-module_imageBox__3tOEt","inputImage":"index-modu
579
579
  styleInject(css_248z);
580
580
 
581
581
  var _excluded$4 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "accept", "canPreview", "disabled"];
582
- var fn = function fn(_ref) {
583
- var _ref2 = _slicedToArray(_ref, 0);
582
+ var fn = function fn() {
583
+ return void 0;
584
584
  };
585
585
  var getBase64 = function getBase64(file) {
586
586
  return new Promise(function (resolve, reject) {
@@ -594,24 +594,24 @@ var getBase64 = function getBase64(file) {
594
594
  };
595
595
  });
596
596
  };
597
- var ApaasUpload = function ApaasUpload(_ref3) {
598
- var _ref3$maxCount = _ref3.maxCount,
599
- maxCount = _ref3$maxCount === void 0 ? 10 : _ref3$maxCount,
600
- _ref3$maxSize = _ref3.maxSize,
601
- maxSize = _ref3$maxSize === void 0 ? 10 : _ref3$maxSize,
602
- _ref3$uploadText = _ref3.uploadText,
603
- uploadText = _ref3$uploadText === void 0 ? '上传' : _ref3$uploadText,
604
- _ref3$onChange = _ref3.onChange,
605
- onChange = _ref3$onChange === void 0 ? fn : _ref3$onChange,
606
- _ref3$value = _ref3.value,
607
- value = _ref3$value === void 0 ? [] : _ref3$value,
608
- _ref3$accept = _ref3.accept,
609
- accept = _ref3$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref3$accept,
610
- _ref3$canPreview = _ref3.canPreview,
611
- canPreview = _ref3$canPreview === void 0 ? false : _ref3$canPreview,
612
- _ref3$disabled = _ref3.disabled,
613
- disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
614
- resetProps = _objectWithoutProperties(_ref3, _excluded$4);
597
+ var ApaasUpload = function ApaasUpload(_ref) {
598
+ var _ref$maxCount = _ref.maxCount,
599
+ maxCount = _ref$maxCount === void 0 ? 10 : _ref$maxCount,
600
+ _ref$maxSize = _ref.maxSize,
601
+ maxSize = _ref$maxSize === void 0 ? 10 : _ref$maxSize,
602
+ _ref$uploadText = _ref.uploadText,
603
+ uploadText = _ref$uploadText === void 0 ? '上传' : _ref$uploadText,
604
+ _ref$onChange = _ref.onChange,
605
+ onChange = _ref$onChange === void 0 ? fn : _ref$onChange,
606
+ _ref$value = _ref.value,
607
+ value = _ref$value === void 0 ? [] : _ref$value,
608
+ _ref$accept = _ref.accept,
609
+ accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
610
+ _ref$canPreview = _ref.canPreview,
611
+ canPreview = _ref$canPreview === void 0 ? false : _ref$canPreview,
612
+ _ref$disabled = _ref.disabled,
613
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
614
+ resetProps = _objectWithoutProperties(_ref, _excluded$4);
615
615
  var inputRef = useRef(null);
616
616
  var valueRef = useRef(value);
617
617
  var _useState = useState(false),
@@ -652,8 +652,8 @@ var ApaasUpload = function ApaasUpload(_ref3) {
652
652
  onChange(list);
653
653
  };
654
654
  var clipboardDataChange = function clipboardDataChange(e) {
655
- var clipboardData = e.clipboardData || window.clipboardData,
656
- i = 0,
655
+ var clipboardData = e.clipboardData || window.clipboardData;
656
+ var i = 0,
657
657
  items,
658
658
  item,
659
659
  types;
@@ -911,32 +911,32 @@ var styles$1 = {"imageBox":"index-module_imageBox__8zj7A","inputImage":"index-mo
911
911
  styleInject(css_248z$1);
912
912
 
913
913
  var _excluded$6 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "accept", "canPreview", "disabled", "uniqueKey", "hostUrl", "actionUrl"];
914
- var fn$1 = function fn(_ref) {
915
- var _ref2 = _slicedToArray(_ref, 0);
914
+ var fn$1 = function fn() {
915
+ return void 0;
916
916
  };
917
- var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
918
- var _ref3$maxCount = _ref3.maxCount,
919
- maxCount = _ref3$maxCount === void 0 ? 10 : _ref3$maxCount,
920
- _ref3$maxSize = _ref3.maxSize,
921
- maxSize = _ref3$maxSize === void 0 ? 10 : _ref3$maxSize,
922
- _ref3$uploadText = _ref3.uploadText,
923
- uploadText = _ref3$uploadText === void 0 ? '上传' : _ref3$uploadText,
924
- _ref3$onChange = _ref3.onChange,
925
- onChange = _ref3$onChange === void 0 ? fn$1 : _ref3$onChange,
926
- _ref3$value = _ref3.value,
927
- value = _ref3$value === void 0 ? [] : _ref3$value,
928
- _ref3$accept = _ref3.accept,
929
- accept = _ref3$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref3$accept,
930
- _ref3$canPreview = _ref3.canPreview,
931
- canPreview = _ref3$canPreview === void 0 ? false : _ref3$canPreview,
932
- _ref3$disabled = _ref3.disabled,
933
- disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
934
- uniqueKey = _ref3.uniqueKey,
935
- _ref3$hostUrl = _ref3.hostUrl,
936
- hostUrl = _ref3$hostUrl === void 0 ? '' : _ref3$hostUrl,
937
- _ref3$actionUrl = _ref3.actionUrl,
938
- actionUrl = _ref3$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref3$actionUrl,
939
- resetProps = _objectWithoutProperties(_ref3, _excluded$6);
917
+ var ApaasUploadAsync = function ApaasUploadAsync(_ref) {
918
+ var _ref$maxCount = _ref.maxCount,
919
+ maxCount = _ref$maxCount === void 0 ? 10 : _ref$maxCount,
920
+ _ref$maxSize = _ref.maxSize,
921
+ maxSize = _ref$maxSize === void 0 ? 10 : _ref$maxSize,
922
+ _ref$uploadText = _ref.uploadText,
923
+ uploadText = _ref$uploadText === void 0 ? '上传' : _ref$uploadText,
924
+ _ref$onChange = _ref.onChange,
925
+ onChange = _ref$onChange === void 0 ? fn$1 : _ref$onChange,
926
+ _ref$value = _ref.value,
927
+ value = _ref$value === void 0 ? [] : _ref$value,
928
+ _ref$accept = _ref.accept,
929
+ accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
930
+ _ref$canPreview = _ref.canPreview,
931
+ canPreview = _ref$canPreview === void 0 ? false : _ref$canPreview,
932
+ _ref$disabled = _ref.disabled,
933
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
934
+ uniqueKey = _ref.uniqueKey,
935
+ _ref$hostUrl = _ref.hostUrl,
936
+ hostUrl = _ref$hostUrl === void 0 ? '' : _ref$hostUrl,
937
+ _ref$actionUrl = _ref.actionUrl,
938
+ actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
939
+ resetProps = _objectWithoutProperties(_ref, _excluded$6);
940
940
  var inputRef = useRef(null);
941
941
  var valueRef = useRef(value);
942
942
  var _useState = useState(false),
@@ -959,7 +959,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
959
959
  valueRef.current = value;
960
960
  }, [value]);
961
961
  var asyncUpload = /*#__PURE__*/function () {
962
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
962
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
963
963
  var _valueRef$current;
964
964
  var formData, fileName, _yield$request, success, data;
965
965
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -1000,7 +1000,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
1000
1000
  }, _callee, null, [[5, 14, 17, 20]]);
1001
1001
  }));
1002
1002
  return function asyncUpload(_x) {
1003
- return _ref4.apply(this, arguments);
1003
+ return _ref2.apply(this, arguments);
1004
1004
  };
1005
1005
  }();
1006
1006
  var imgReader = function imgReader(item) {
@@ -1015,7 +1015,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
1015
1015
  return;
1016
1016
  }
1017
1017
  reader.onload = /*#__PURE__*/function () {
1018
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
1018
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
1019
1019
  var _e$target, _valueRef$current2;
1020
1020
  var result, fileName, file;
1021
1021
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
@@ -1032,7 +1032,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
1032
1032
  }, _callee2);
1033
1033
  }));
1034
1034
  return function (_x2) {
1035
- return _ref5.apply(this, arguments);
1035
+ return _ref3.apply(this, arguments);
1036
1036
  };
1037
1037
  }();
1038
1038
  reader.readAsDataURL(blob);
@@ -1042,8 +1042,8 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
1042
1042
  onChange(list);
1043
1043
  };
1044
1044
  var clipboardDataChange = function clipboardDataChange(e) {
1045
- var clipboardData = e.clipboardData || window.clipboardData,
1046
- i = 0,
1045
+ var clipboardData = e.clipboardData || window.clipboardData;
1046
+ var i = 0,
1047
1047
  items,
1048
1048
  item,
1049
1049
  types;
@@ -1188,7 +1188,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
1188
1188
  })));
1189
1189
  };
1190
1190
 
1191
- var _excluded$7 = ["showOther", "horizontal", "options", "value", "onChange", "disabled", "checkboxOther"];
1191
+ var _excluded$7 = ["showOther", "horizontal", "options", "value", "onChange", "disabled"];
1192
1192
  function ApaasCheckbox(props) {
1193
1193
  var showOther = props.showOther,
1194
1194
  _props$horizontal = props.horizontal,
@@ -1199,7 +1199,6 @@ function ApaasCheckbox(props) {
1199
1199
  value = _props$value === void 0 ? {} : _props$value,
1200
1200
  onChange = props.onChange,
1201
1201
  disabled = props.disabled,
1202
- checkboxOther = props.checkboxOther,
1203
1202
  otherProps = _objectWithoutProperties(props, _excluded$7);
1204
1203
  var checkboxValue = value.value,
1205
1204
  other = value.other;
@@ -1540,7 +1539,7 @@ function ApaasAddress(props) {
1540
1539
  var value = props.value,
1541
1540
  onChange = props.onChange,
1542
1541
  disabled = props.disabled;
1543
- var changeCity = function changeCity(city, selectedOptions) {
1542
+ var changeCity = function changeCity(city) {
1544
1543
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
1545
1544
  address: city
1546
1545
  }));
@@ -1690,7 +1689,6 @@ var AliPay = function AliPay(props) {
1690
1689
  var changeValue = function changeValue(e, type) {
1691
1690
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, e.target.value)));
1692
1691
  };
1693
- useEffect(function () {}, []);
1694
1692
  return /*#__PURE__*/React.createElement("div", null, !isSingle ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Input, {
1695
1693
  disabled: disabled,
1696
1694
  placeholder: "\u8BF7\u8F93\u5165\u652F\u4ED8\u5B9D\u540D\u79F0",
@@ -2791,7 +2789,7 @@ var Invoice = function Invoice(props) {
2791
2789
  */
2792
2790
  var handleChange = /*#__PURE__*/function () {
2793
2791
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(ordinaryTaitou) {
2794
- var data, list, newList, index, element, kpName, idx;
2792
+ var data, _list, newList, index, element, kpName, idx;
2795
2793
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2796
2794
  while (1) switch (_context2.prev = _context2.next) {
2797
2795
  case 0:
@@ -2812,16 +2810,16 @@ var Invoice = function Invoice(props) {
2812
2810
  _context2.next = 16;
2813
2811
  break;
2814
2812
  }
2815
- list = data.data ? data.data.info || [] : [];
2816
- if (list.length) {
2813
+ _list = data.data ? data.data.info || [] : [];
2814
+ if (_list.length) {
2817
2815
  _context2.next = 10;
2818
2816
  break;
2819
2817
  }
2820
2818
  return _context2.abrupt("return");
2821
2819
  case 10:
2822
2820
  newList = [];
2823
- for (index = 0; index < list.length; index++) {
2824
- element = list[index];
2821
+ for (index = 0; index < _list.length; index++) {
2822
+ element = _list[index];
2825
2823
  kpName = element.kpName;
2826
2824
  idx = kpName.indexOf(ordinaryTaitou);
2827
2825
  element.kpName1 = kpName.substring(0, idx);
@@ -3205,11 +3203,11 @@ var LogisticsInterception = function LogisticsInterception(props) {
3205
3203
  interceptCompany: val,
3206
3204
  interceptType: (returnValue === null || returnValue === void 0 ? void 0 : returnValue.value) || '',
3207
3205
  interceptAddress: [],
3208
- interceptDetail: '',
3209
- interceptReceiverName: '',
3210
- interceptReceiverMobile: '',
3206
+ interceptDetail: undefined,
3207
+ interceptReceiverName: undefined,
3208
+ interceptReceiverMobile: undefined,
3211
3209
  interceptStatus: undefined,
3212
- interceptOther: ''
3210
+ interceptOther: undefined
3213
3211
  });
3214
3212
  }
3215
3213
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
package/dist/index.js CHANGED
@@ -589,8 +589,8 @@ var styles = {"imageBox":"index-module_imageBox__3tOEt","inputImage":"index-modu
589
589
  styleInject(css_248z);
590
590
 
591
591
  var _excluded$4 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "accept", "canPreview", "disabled"];
592
- var fn = function fn(_ref) {
593
- var _ref2 = _slicedToArray(_ref, 0);
592
+ var fn = function fn() {
593
+ return void 0;
594
594
  };
595
595
  var getBase64 = function getBase64(file) {
596
596
  return new Promise(function (resolve, reject) {
@@ -604,24 +604,24 @@ var getBase64 = function getBase64(file) {
604
604
  };
605
605
  });
606
606
  };
607
- var ApaasUpload = function ApaasUpload(_ref3) {
608
- var _ref3$maxCount = _ref3.maxCount,
609
- maxCount = _ref3$maxCount === void 0 ? 10 : _ref3$maxCount,
610
- _ref3$maxSize = _ref3.maxSize,
611
- maxSize = _ref3$maxSize === void 0 ? 10 : _ref3$maxSize,
612
- _ref3$uploadText = _ref3.uploadText,
613
- uploadText = _ref3$uploadText === void 0 ? '上传' : _ref3$uploadText,
614
- _ref3$onChange = _ref3.onChange,
615
- onChange = _ref3$onChange === void 0 ? fn : _ref3$onChange,
616
- _ref3$value = _ref3.value,
617
- value = _ref3$value === void 0 ? [] : _ref3$value,
618
- _ref3$accept = _ref3.accept,
619
- accept = _ref3$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref3$accept,
620
- _ref3$canPreview = _ref3.canPreview,
621
- canPreview = _ref3$canPreview === void 0 ? false : _ref3$canPreview,
622
- _ref3$disabled = _ref3.disabled,
623
- disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
624
- resetProps = _objectWithoutProperties(_ref3, _excluded$4);
607
+ var ApaasUpload = function ApaasUpload(_ref) {
608
+ var _ref$maxCount = _ref.maxCount,
609
+ maxCount = _ref$maxCount === void 0 ? 10 : _ref$maxCount,
610
+ _ref$maxSize = _ref.maxSize,
611
+ maxSize = _ref$maxSize === void 0 ? 10 : _ref$maxSize,
612
+ _ref$uploadText = _ref.uploadText,
613
+ uploadText = _ref$uploadText === void 0 ? '上传' : _ref$uploadText,
614
+ _ref$onChange = _ref.onChange,
615
+ onChange = _ref$onChange === void 0 ? fn : _ref$onChange,
616
+ _ref$value = _ref.value,
617
+ value = _ref$value === void 0 ? [] : _ref$value,
618
+ _ref$accept = _ref.accept,
619
+ accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
620
+ _ref$canPreview = _ref.canPreview,
621
+ canPreview = _ref$canPreview === void 0 ? false : _ref$canPreview,
622
+ _ref$disabled = _ref.disabled,
623
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
624
+ resetProps = _objectWithoutProperties(_ref, _excluded$4);
625
625
  var inputRef = React.useRef(null);
626
626
  var valueRef = React.useRef(value);
627
627
  var _useState = React.useState(false),
@@ -662,8 +662,8 @@ var ApaasUpload = function ApaasUpload(_ref3) {
662
662
  onChange(list);
663
663
  };
664
664
  var clipboardDataChange = function clipboardDataChange(e) {
665
- var clipboardData = e.clipboardData || window.clipboardData,
666
- i = 0,
665
+ var clipboardData = e.clipboardData || window.clipboardData;
666
+ var i = 0,
667
667
  items,
668
668
  item,
669
669
  types;
@@ -921,32 +921,32 @@ var styles$1 = {"imageBox":"index-module_imageBox__8zj7A","inputImage":"index-mo
921
921
  styleInject(css_248z$1);
922
922
 
923
923
  var _excluded$6 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "accept", "canPreview", "disabled", "uniqueKey", "hostUrl", "actionUrl"];
924
- var fn$1 = function fn(_ref) {
925
- var _ref2 = _slicedToArray(_ref, 0);
924
+ var fn$1 = function fn() {
925
+ return void 0;
926
926
  };
927
- var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
928
- var _ref3$maxCount = _ref3.maxCount,
929
- maxCount = _ref3$maxCount === void 0 ? 10 : _ref3$maxCount,
930
- _ref3$maxSize = _ref3.maxSize,
931
- maxSize = _ref3$maxSize === void 0 ? 10 : _ref3$maxSize,
932
- _ref3$uploadText = _ref3.uploadText,
933
- uploadText = _ref3$uploadText === void 0 ? '上传' : _ref3$uploadText,
934
- _ref3$onChange = _ref3.onChange,
935
- onChange = _ref3$onChange === void 0 ? fn$1 : _ref3$onChange,
936
- _ref3$value = _ref3.value,
937
- value = _ref3$value === void 0 ? [] : _ref3$value,
938
- _ref3$accept = _ref3.accept,
939
- accept = _ref3$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref3$accept,
940
- _ref3$canPreview = _ref3.canPreview,
941
- canPreview = _ref3$canPreview === void 0 ? false : _ref3$canPreview,
942
- _ref3$disabled = _ref3.disabled,
943
- disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
944
- uniqueKey = _ref3.uniqueKey,
945
- _ref3$hostUrl = _ref3.hostUrl,
946
- hostUrl = _ref3$hostUrl === void 0 ? '' : _ref3$hostUrl,
947
- _ref3$actionUrl = _ref3.actionUrl,
948
- actionUrl = _ref3$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref3$actionUrl,
949
- resetProps = _objectWithoutProperties(_ref3, _excluded$6);
927
+ var ApaasUploadAsync = function ApaasUploadAsync(_ref) {
928
+ var _ref$maxCount = _ref.maxCount,
929
+ maxCount = _ref$maxCount === void 0 ? 10 : _ref$maxCount,
930
+ _ref$maxSize = _ref.maxSize,
931
+ maxSize = _ref$maxSize === void 0 ? 10 : _ref$maxSize,
932
+ _ref$uploadText = _ref.uploadText,
933
+ uploadText = _ref$uploadText === void 0 ? '上传' : _ref$uploadText,
934
+ _ref$onChange = _ref.onChange,
935
+ onChange = _ref$onChange === void 0 ? fn$1 : _ref$onChange,
936
+ _ref$value = _ref.value,
937
+ value = _ref$value === void 0 ? [] : _ref$value,
938
+ _ref$accept = _ref.accept,
939
+ accept = _ref$accept === void 0 ? 'image/gif,image/jpg,image/jpeg,image/png' : _ref$accept,
940
+ _ref$canPreview = _ref.canPreview,
941
+ canPreview = _ref$canPreview === void 0 ? false : _ref$canPreview,
942
+ _ref$disabled = _ref.disabled,
943
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
944
+ uniqueKey = _ref.uniqueKey,
945
+ _ref$hostUrl = _ref.hostUrl,
946
+ hostUrl = _ref$hostUrl === void 0 ? '' : _ref$hostUrl,
947
+ _ref$actionUrl = _ref.actionUrl,
948
+ actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
949
+ resetProps = _objectWithoutProperties(_ref, _excluded$6);
950
950
  var inputRef = React.useRef(null);
951
951
  var valueRef = React.useRef(value);
952
952
  var _useState = React.useState(false),
@@ -969,7 +969,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
969
969
  valueRef.current = value;
970
970
  }, [value]);
971
971
  var asyncUpload = /*#__PURE__*/function () {
972
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
972
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
973
973
  var _valueRef$current;
974
974
  var formData, fileName, _yield$request, success, data;
975
975
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -1010,7 +1010,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
1010
1010
  }, _callee, null, [[5, 14, 17, 20]]);
1011
1011
  }));
1012
1012
  return function asyncUpload(_x) {
1013
- return _ref4.apply(this, arguments);
1013
+ return _ref2.apply(this, arguments);
1014
1014
  };
1015
1015
  }();
1016
1016
  var imgReader = function imgReader(item) {
@@ -1025,7 +1025,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
1025
1025
  return;
1026
1026
  }
1027
1027
  reader.onload = /*#__PURE__*/function () {
1028
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
1028
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
1029
1029
  var _e$target, _valueRef$current2;
1030
1030
  var result, fileName, file;
1031
1031
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
@@ -1042,7 +1042,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
1042
1042
  }, _callee2);
1043
1043
  }));
1044
1044
  return function (_x2) {
1045
- return _ref5.apply(this, arguments);
1045
+ return _ref3.apply(this, arguments);
1046
1046
  };
1047
1047
  }();
1048
1048
  reader.readAsDataURL(blob);
@@ -1052,8 +1052,8 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
1052
1052
  onChange(list);
1053
1053
  };
1054
1054
  var clipboardDataChange = function clipboardDataChange(e) {
1055
- var clipboardData = e.clipboardData || window.clipboardData,
1056
- i = 0,
1055
+ var clipboardData = e.clipboardData || window.clipboardData;
1056
+ var i = 0,
1057
1057
  items,
1058
1058
  item,
1059
1059
  types;
@@ -1198,7 +1198,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref3) {
1198
1198
  })));
1199
1199
  };
1200
1200
 
1201
- var _excluded$7 = ["showOther", "horizontal", "options", "value", "onChange", "disabled", "checkboxOther"];
1201
+ var _excluded$7 = ["showOther", "horizontal", "options", "value", "onChange", "disabled"];
1202
1202
  function ApaasCheckbox(props) {
1203
1203
  var showOther = props.showOther,
1204
1204
  _props$horizontal = props.horizontal,
@@ -1209,7 +1209,6 @@ function ApaasCheckbox(props) {
1209
1209
  value = _props$value === void 0 ? {} : _props$value,
1210
1210
  onChange = props.onChange,
1211
1211
  disabled = props.disabled,
1212
- checkboxOther = props.checkboxOther,
1213
1212
  otherProps = _objectWithoutProperties(props, _excluded$7);
1214
1213
  var checkboxValue = value.value,
1215
1214
  other = value.other;
@@ -1550,7 +1549,7 @@ function ApaasAddress(props) {
1550
1549
  var value = props.value,
1551
1550
  onChange = props.onChange,
1552
1551
  disabled = props.disabled;
1553
- var changeCity = function changeCity(city, selectedOptions) {
1552
+ var changeCity = function changeCity(city) {
1554
1553
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
1555
1554
  address: city
1556
1555
  }));
@@ -1700,7 +1699,6 @@ var AliPay = function AliPay(props) {
1700
1699
  var changeValue = function changeValue(e, type) {
1701
1700
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, e.target.value)));
1702
1701
  };
1703
- React.useEffect(function () {}, []);
1704
1702
  return /*#__PURE__*/React__default['default'].createElement("div", null, !isSingle ? /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
1705
1703
  disabled: disabled,
1706
1704
  placeholder: "\u8BF7\u8F93\u5165\u652F\u4ED8\u5B9D\u540D\u79F0",
@@ -2801,7 +2799,7 @@ var Invoice = function Invoice(props) {
2801
2799
  */
2802
2800
  var handleChange = /*#__PURE__*/function () {
2803
2801
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(ordinaryTaitou) {
2804
- var data, list, newList, index, element, kpName, idx;
2802
+ var data, _list, newList, index, element, kpName, idx;
2805
2803
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2806
2804
  while (1) switch (_context2.prev = _context2.next) {
2807
2805
  case 0:
@@ -2822,16 +2820,16 @@ var Invoice = function Invoice(props) {
2822
2820
  _context2.next = 16;
2823
2821
  break;
2824
2822
  }
2825
- list = data.data ? data.data.info || [] : [];
2826
- if (list.length) {
2823
+ _list = data.data ? data.data.info || [] : [];
2824
+ if (_list.length) {
2827
2825
  _context2.next = 10;
2828
2826
  break;
2829
2827
  }
2830
2828
  return _context2.abrupt("return");
2831
2829
  case 10:
2832
2830
  newList = [];
2833
- for (index = 0; index < list.length; index++) {
2834
- element = list[index];
2831
+ for (index = 0; index < _list.length; index++) {
2832
+ element = _list[index];
2835
2833
  kpName = element.kpName;
2836
2834
  idx = kpName.indexOf(ordinaryTaitou);
2837
2835
  element.kpName1 = kpName.substring(0, idx);
@@ -3215,11 +3213,11 @@ var LogisticsInterception = function LogisticsInterception(props) {
3215
3213
  interceptCompany: val,
3216
3214
  interceptType: (returnValue === null || returnValue === void 0 ? void 0 : returnValue.value) || '',
3217
3215
  interceptAddress: [],
3218
- interceptDetail: '',
3219
- interceptReceiverName: '',
3220
- interceptReceiverMobile: '',
3216
+ interceptDetail: undefined,
3217
+ interceptReceiverName: undefined,
3218
+ interceptReceiverMobile: undefined,
3221
3219
  interceptStatus: undefined,
3222
- interceptOther: ''
3220
+ interceptOther: undefined
3223
3221
  });
3224
3222
  }
3225
3223
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.6.3-alpha.15",
3
+ "version": "0.6.3-alpha.21",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -12,7 +12,9 @@
12
12
  ],
13
13
  "scripts": {
14
14
  "async": "yarn build && yalc push",
15
- "build": "father-build",
15
+ "build": "yarn lint && father-build",
16
+ "lint": "eslint '**/*.{ts,tsx}'",
17
+ "lint:fix": "eslint --fix '**/*.{ts,tsx}'",
16
18
  "start": "dumi dev",
17
19
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
18
20
  },
@@ -20,9 +22,12 @@
20
22
  "umi-request": "^1.4.0"
21
23
  },
22
24
  "devDependencies": {
25
+ "@typescript-eslint/eslint-plugin": "^5.59.2",
26
+ "@typescript-eslint/parser": "^5.59.2",
23
27
  "@umijs/test": "^3.0.5",
24
28
  "babel-plugin-import": "^1.13.5",
25
29
  "dumi": "^1.0.16",
30
+ "eslint": "^8.40.0",
26
31
  "father-build": "^1.17.2",
27
32
  "gh-pages": "^3.0.0",
28
33
  "lint-staged": "^10.0.7",
@@ -37,5 +42,5 @@
37
42
  "publishConfig": {
38
43
  "access": "public"
39
44
  },
40
- "gitHead": "48cd1f4dc355b1b386299c085845494a7068c374"
45
+ "gitHead": "79d6a0773ee444beb4c8d2c646b9adfcf1c628a5"
41
46
  }