@kmkf-fe-packages/basic-components 1.0.4-rc.2 → 1.0.4-rc.3
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 +9 -8
- package/dist/index.js +9 -8
- package/dist/src/jst/Goods/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -7563,11 +7563,11 @@ function ApaasPosting(props) {
|
|
|
7563
7563
|
});
|
|
7564
7564
|
}
|
|
7565
7565
|
|
|
7566
|
-
var _excluded$a = ["value", "onChange", "
|
|
7566
|
+
var _excluded$a = ["value", "onChange", "platformType"];
|
|
7567
7567
|
function ApaasLogistics(props) {
|
|
7568
7568
|
var value = props.value,
|
|
7569
7569
|
onChange = props.onChange,
|
|
7570
|
-
|
|
7570
|
+
platformType = props.platformType,
|
|
7571
7571
|
other = _objectWithoutProperties(props, _excluded$a);
|
|
7572
7572
|
var _useState = useState([]),
|
|
7573
7573
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7580,7 +7580,7 @@ function ApaasLogistics(props) {
|
|
|
7580
7580
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7581
7581
|
while (1) switch (_context.prev = _context.next) {
|
|
7582
7582
|
case 0:
|
|
7583
|
-
express = ExpressData.getInstance(
|
|
7583
|
+
express = ExpressData.getInstance(platformType);
|
|
7584
7584
|
setOptions(express.expressData || []);
|
|
7585
7585
|
case 2:
|
|
7586
7586
|
case "end":
|
|
@@ -10433,8 +10433,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
10433
10433
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
10434
10434
|
_props$showField = props.showField,
|
|
10435
10435
|
showField = _props$showField === void 0 ? '' : _props$showField,
|
|
10436
|
-
_props$
|
|
10437
|
-
|
|
10436
|
+
_props$platformType = props.platformType,
|
|
10437
|
+
platformType = _props$platformType === void 0 ? 'default' : _props$platformType;
|
|
10438
10438
|
var _useState = useState(0),
|
|
10439
10439
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10440
10440
|
changeIndex = _useState2[0],
|
|
@@ -10469,7 +10469,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10469
10469
|
var handleSelected = function handleSelected(val, type, option) {
|
|
10470
10470
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
10471
10471
|
changeOrderInfo[type] = val;
|
|
10472
|
-
changeOrderInfo['sendId'] = option.
|
|
10472
|
+
changeOrderInfo['sendId'] = option.value;
|
|
10473
10473
|
var newList = _toConsumableArray(value);
|
|
10474
10474
|
newList[changeIndex] = changeOrderInfo;
|
|
10475
10475
|
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
@@ -10516,11 +10516,12 @@ var jstGoods = function jstGoods(props) {
|
|
|
10516
10516
|
filterOption: function filterOption(input, option) {
|
|
10517
10517
|
return option.label.includes(input);
|
|
10518
10518
|
},
|
|
10519
|
+
dropdownMatchSelectWidth: false,
|
|
10519
10520
|
style: {
|
|
10520
10521
|
minWidth: '100px',
|
|
10521
10522
|
maxWidth: '180px'
|
|
10522
10523
|
},
|
|
10523
|
-
|
|
10524
|
+
platformType: platformType
|
|
10524
10525
|
}) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React.createElement(Input, {
|
|
10525
10526
|
disabled: disabled,
|
|
10526
10527
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
@@ -10549,7 +10550,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10549
10550
|
return changeInputHandle(e.target.value, 'sendId');
|
|
10550
10551
|
},
|
|
10551
10552
|
value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.sendId
|
|
10552
|
-
}), ['sendName', 'all'].includes(showField) && (
|
|
10553
|
+
}), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' ? /*#__PURE__*/React.createElement(Select, {
|
|
10553
10554
|
style: {
|
|
10554
10555
|
minWidth: '100px',
|
|
10555
10556
|
maxWidth: '180px'
|
package/dist/index.js
CHANGED
|
@@ -7574,11 +7574,11 @@ function ApaasPosting(props) {
|
|
|
7574
7574
|
});
|
|
7575
7575
|
}
|
|
7576
7576
|
|
|
7577
|
-
var _excluded$a = ["value", "onChange", "
|
|
7577
|
+
var _excluded$a = ["value", "onChange", "platformType"];
|
|
7578
7578
|
function ApaasLogistics(props) {
|
|
7579
7579
|
var value = props.value,
|
|
7580
7580
|
onChange = props.onChange,
|
|
7581
|
-
|
|
7581
|
+
platformType = props.platformType,
|
|
7582
7582
|
other = _objectWithoutProperties(props, _excluded$a);
|
|
7583
7583
|
var _useState = React.useState([]),
|
|
7584
7584
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7591,7 +7591,7 @@ function ApaasLogistics(props) {
|
|
|
7591
7591
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7592
7592
|
while (1) switch (_context.prev = _context.next) {
|
|
7593
7593
|
case 0:
|
|
7594
|
-
express = kmkfUtils.ExpressData.getInstance(
|
|
7594
|
+
express = kmkfUtils.ExpressData.getInstance(platformType);
|
|
7595
7595
|
setOptions(express.expressData || []);
|
|
7596
7596
|
case 2:
|
|
7597
7597
|
case "end":
|
|
@@ -10444,8 +10444,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
10444
10444
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
10445
10445
|
_props$showField = props.showField,
|
|
10446
10446
|
showField = _props$showField === void 0 ? '' : _props$showField,
|
|
10447
|
-
_props$
|
|
10448
|
-
|
|
10447
|
+
_props$platformType = props.platformType,
|
|
10448
|
+
platformType = _props$platformType === void 0 ? 'default' : _props$platformType;
|
|
10449
10449
|
var _useState = React.useState(0),
|
|
10450
10450
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10451
10451
|
changeIndex = _useState2[0],
|
|
@@ -10480,7 +10480,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10480
10480
|
var handleSelected = function handleSelected(val, type, option) {
|
|
10481
10481
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
10482
10482
|
changeOrderInfo[type] = val;
|
|
10483
|
-
changeOrderInfo['sendId'] = option.
|
|
10483
|
+
changeOrderInfo['sendId'] = option.value;
|
|
10484
10484
|
var newList = _toConsumableArray(value);
|
|
10485
10485
|
newList[changeIndex] = changeOrderInfo;
|
|
10486
10486
|
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
@@ -10527,11 +10527,12 @@ var jstGoods = function jstGoods(props) {
|
|
|
10527
10527
|
filterOption: function filterOption(input, option) {
|
|
10528
10528
|
return option.label.includes(input);
|
|
10529
10529
|
},
|
|
10530
|
+
dropdownMatchSelectWidth: false,
|
|
10530
10531
|
style: {
|
|
10531
10532
|
minWidth: '100px',
|
|
10532
10533
|
maxWidth: '180px'
|
|
10533
10534
|
},
|
|
10534
|
-
|
|
10535
|
+
platformType: platformType
|
|
10535
10536
|
}) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10536
10537
|
disabled: disabled,
|
|
10537
10538
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
@@ -10560,7 +10561,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10560
10561
|
return changeInputHandle(e.target.value, 'sendId');
|
|
10561
10562
|
},
|
|
10562
10563
|
value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.sendId
|
|
10563
|
-
}), ['sendName', 'all'].includes(showField) && (
|
|
10564
|
+
}), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
10564
10565
|
style: {
|
|
10565
10566
|
minWidth: '100px',
|
|
10566
10567
|
maxWidth: '180px'
|
|
@@ -6,7 +6,7 @@ interface JstGoodsProps {
|
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
onChange: (val: any[]) => void;
|
|
8
8
|
showField: string;
|
|
9
|
-
|
|
9
|
+
platformType?: string;
|
|
10
10
|
}
|
|
11
11
|
declare const jstGoods: (props: Partial<JstGoodsProps>) => React.JSX.Element;
|
|
12
12
|
export default jstGoods;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "1.0.4-rc.
|
|
3
|
+
"version": "1.0.4-rc.3",
|
|
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": "^1.0.4-rc.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "^1.0.4-rc.3",
|
|
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": "d0d723090eb2e1976673518a8a0af3ccda08845c"
|
|
68
68
|
}
|