@kmkf-fe-packages/basic-components 0.27.1-test.7 → 0.27.1-test.8
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 +3 -10
- package/dist/index.js +2 -9
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseCircleOutlined, CaretUpOutlined } 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 { AddressData, BsAddressData, WdtAddressData, request as request$1,
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData, useSendData, WDT_ORDER_TYPE_MAP } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
8
8
|
import { cloneDeep, difference, differenceWith } from 'lodash';
|
|
9
9
|
import { useDebounceEffect } from 'ahooks';
|
|
@@ -7573,8 +7573,6 @@ function ApaasLogistics(props) {
|
|
|
7573
7573
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7574
7574
|
option = _useState2[0],
|
|
7575
7575
|
setOptions = _useState2[1];
|
|
7576
|
-
var _useLogisticsData = useLogisticsData(type),
|
|
7577
|
-
logisticsData = _useLogisticsData.logisticsData;
|
|
7578
7576
|
var isFirst = useRef(false);
|
|
7579
7577
|
var initPageSource = /*#__PURE__*/function () {
|
|
7580
7578
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
@@ -7582,7 +7580,7 @@ function ApaasLogistics(props) {
|
|
|
7582
7580
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7583
7581
|
while (1) switch (_context.prev = _context.next) {
|
|
7584
7582
|
case 0:
|
|
7585
|
-
express = ExpressData.getInstance();
|
|
7583
|
+
express = ExpressData.getInstance(type === 'WDT_LOGISTICS' ? 'wdt' : 'default');
|
|
7586
7584
|
setOptions(express.expressData || []);
|
|
7587
7585
|
case 2:
|
|
7588
7586
|
case "end":
|
|
@@ -7600,11 +7598,6 @@ function ApaasLogistics(props) {
|
|
|
7600
7598
|
isFirst.current = true;
|
|
7601
7599
|
}
|
|
7602
7600
|
}, []);
|
|
7603
|
-
useEffect(function () {
|
|
7604
|
-
if (type === 'wdt') {
|
|
7605
|
-
setOptions(_toConsumableArray(logisticsData || []));
|
|
7606
|
-
}
|
|
7607
|
-
}, [logisticsData]);
|
|
7608
7601
|
return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
7609
7602
|
value: value,
|
|
7610
7603
|
onChange: onChange,
|
|
@@ -10507,7 +10500,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10507
10500
|
minWidth: '100px',
|
|
10508
10501
|
maxWidth: '180px'
|
|
10509
10502
|
},
|
|
10510
|
-
type: componentType
|
|
10503
|
+
type: componentType
|
|
10511
10504
|
}) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React.createElement(Input, {
|
|
10512
10505
|
disabled: disabled,
|
|
10513
10506
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
package/dist/index.js
CHANGED
|
@@ -7584,8 +7584,6 @@ function ApaasLogistics(props) {
|
|
|
7584
7584
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7585
7585
|
option = _useState2[0],
|
|
7586
7586
|
setOptions = _useState2[1];
|
|
7587
|
-
var _useLogisticsData = kmkfUtils.useLogisticsData(type),
|
|
7588
|
-
logisticsData = _useLogisticsData.logisticsData;
|
|
7589
7587
|
var isFirst = React.useRef(false);
|
|
7590
7588
|
var initPageSource = /*#__PURE__*/function () {
|
|
7591
7589
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
@@ -7593,7 +7591,7 @@ function ApaasLogistics(props) {
|
|
|
7593
7591
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7594
7592
|
while (1) switch (_context.prev = _context.next) {
|
|
7595
7593
|
case 0:
|
|
7596
|
-
express = kmkfUtils.ExpressData.getInstance();
|
|
7594
|
+
express = kmkfUtils.ExpressData.getInstance(type === 'WDT_LOGISTICS' ? 'wdt' : 'default');
|
|
7597
7595
|
setOptions(express.expressData || []);
|
|
7598
7596
|
case 2:
|
|
7599
7597
|
case "end":
|
|
@@ -7611,11 +7609,6 @@ function ApaasLogistics(props) {
|
|
|
7611
7609
|
isFirst.current = true;
|
|
7612
7610
|
}
|
|
7613
7611
|
}, []);
|
|
7614
|
-
React.useEffect(function () {
|
|
7615
|
-
if (type === 'wdt') {
|
|
7616
|
-
setOptions(_toConsumableArray(logisticsData || []));
|
|
7617
|
-
}
|
|
7618
|
-
}, [logisticsData]);
|
|
7619
7612
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
7620
7613
|
value: value,
|
|
7621
7614
|
onChange: onChange,
|
|
@@ -10518,7 +10511,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10518
10511
|
minWidth: '100px',
|
|
10519
10512
|
maxWidth: '180px'
|
|
10520
10513
|
},
|
|
10521
|
-
type: componentType
|
|
10514
|
+
type: componentType
|
|
10522
10515
|
}) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10523
10516
|
disabled: disabled,
|
|
10524
10517
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.27.1-test.
|
|
3
|
+
"version": "0.27.1-test.8",
|
|
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.27.1-test.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.27.1-test.8",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"kmkf-monitor": "^0.8.8",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "79152b18e9f8e50a947afa54628538a09b70b900"
|
|
68
68
|
}
|