@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 +64 -66
- package/dist/index.js +64 -66
- package/package.json +8 -3
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(
|
|
583
|
-
|
|
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(
|
|
598
|
-
var
|
|
599
|
-
maxCount =
|
|
600
|
-
|
|
601
|
-
maxSize =
|
|
602
|
-
|
|
603
|
-
uploadText =
|
|
604
|
-
|
|
605
|
-
onChange =
|
|
606
|
-
|
|
607
|
-
value =
|
|
608
|
-
|
|
609
|
-
accept =
|
|
610
|
-
|
|
611
|
-
canPreview =
|
|
612
|
-
|
|
613
|
-
disabled =
|
|
614
|
-
resetProps = _objectWithoutProperties(
|
|
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
|
-
|
|
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(
|
|
915
|
-
|
|
914
|
+
var fn$1 = function fn() {
|
|
915
|
+
return void 0;
|
|
916
916
|
};
|
|
917
|
-
var ApaasUploadAsync = function ApaasUploadAsync(
|
|
918
|
-
var
|
|
919
|
-
maxCount =
|
|
920
|
-
|
|
921
|
-
maxSize =
|
|
922
|
-
|
|
923
|
-
uploadText =
|
|
924
|
-
|
|
925
|
-
onChange =
|
|
926
|
-
|
|
927
|
-
value =
|
|
928
|
-
|
|
929
|
-
accept =
|
|
930
|
-
|
|
931
|
-
canPreview =
|
|
932
|
-
|
|
933
|
-
disabled =
|
|
934
|
-
uniqueKey =
|
|
935
|
-
|
|
936
|
-
hostUrl =
|
|
937
|
-
|
|
938
|
-
actionUrl =
|
|
939
|
-
resetProps = _objectWithoutProperties(
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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"
|
|
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
|
|
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,
|
|
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
|
-
|
|
2816
|
-
if (
|
|
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 <
|
|
2824
|
-
element =
|
|
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(
|
|
593
|
-
|
|
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(
|
|
608
|
-
var
|
|
609
|
-
maxCount =
|
|
610
|
-
|
|
611
|
-
maxSize =
|
|
612
|
-
|
|
613
|
-
uploadText =
|
|
614
|
-
|
|
615
|
-
onChange =
|
|
616
|
-
|
|
617
|
-
value =
|
|
618
|
-
|
|
619
|
-
accept =
|
|
620
|
-
|
|
621
|
-
canPreview =
|
|
622
|
-
|
|
623
|
-
disabled =
|
|
624
|
-
resetProps = _objectWithoutProperties(
|
|
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
|
-
|
|
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(
|
|
925
|
-
|
|
924
|
+
var fn$1 = function fn() {
|
|
925
|
+
return void 0;
|
|
926
926
|
};
|
|
927
|
-
var ApaasUploadAsync = function ApaasUploadAsync(
|
|
928
|
-
var
|
|
929
|
-
maxCount =
|
|
930
|
-
|
|
931
|
-
maxSize =
|
|
932
|
-
|
|
933
|
-
uploadText =
|
|
934
|
-
|
|
935
|
-
onChange =
|
|
936
|
-
|
|
937
|
-
value =
|
|
938
|
-
|
|
939
|
-
accept =
|
|
940
|
-
|
|
941
|
-
canPreview =
|
|
942
|
-
|
|
943
|
-
disabled =
|
|
944
|
-
uniqueKey =
|
|
945
|
-
|
|
946
|
-
hostUrl =
|
|
947
|
-
|
|
948
|
-
actionUrl =
|
|
949
|
-
resetProps = _objectWithoutProperties(
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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"
|
|
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
|
|
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,
|
|
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
|
-
|
|
2826
|
-
if (
|
|
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 <
|
|
2834
|
-
element =
|
|
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.
|
|
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": "
|
|
45
|
+
"gitHead": "79d6a0773ee444beb4c8d2c646b9adfcf1c628a5"
|
|
41
46
|
}
|