@kmkf-fe-packages/basic-components 2.0.59 → 2.0.61
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 +40 -7
- package/dist/index.js +40 -6
- package/dist/src/common/AsyncSelect/index.d.ts +6 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -19599,6 +19599,39 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19599
19599
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
|
|
19600
19600
|
};
|
|
19601
19601
|
|
|
19602
|
+
var _excluded$n = ["showOnly", "getOptionsAsync"];
|
|
19603
|
+
var AsyncSelect = function AsyncSelect(props) {
|
|
19604
|
+
var _props$showOnly = props.showOnly,
|
|
19605
|
+
showOnly = _props$showOnly === void 0 ? false : _props$showOnly,
|
|
19606
|
+
getOptionsAsync = props.getOptionsAsync,
|
|
19607
|
+
otherProps = _objectWithoutProperties(props, _excluded$n);
|
|
19608
|
+
var _React$useState = React.useState([]),
|
|
19609
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
19610
|
+
data = _React$useState2[0],
|
|
19611
|
+
setData = _React$useState2[1];
|
|
19612
|
+
React.useEffect(function () {
|
|
19613
|
+
getOptionsAsync === null || getOptionsAsync === void 0 ? void 0 : getOptionsAsync().then(function (list) {
|
|
19614
|
+
setData(list);
|
|
19615
|
+
});
|
|
19616
|
+
}, []);
|
|
19617
|
+
var options = [].concat(_toConsumableArray(props.options || []), _toConsumableArray(data || []));
|
|
19618
|
+
if (showOnly) {
|
|
19619
|
+
var selectedItem = options.find(function (option) {
|
|
19620
|
+
return option.value === props.value;
|
|
19621
|
+
});
|
|
19622
|
+
return selectedItem ? selectedItem.label : props.value;
|
|
19623
|
+
}
|
|
19624
|
+
return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
19625
|
+
showSearch: true,
|
|
19626
|
+
filterOption: function filterOption(input, option) {
|
|
19627
|
+
return option.label.includes(input);
|
|
19628
|
+
},
|
|
19629
|
+
notFoundContent: null
|
|
19630
|
+
}, otherProps), {}, {
|
|
19631
|
+
options: options
|
|
19632
|
+
}));
|
|
19633
|
+
};
|
|
19634
|
+
|
|
19602
19635
|
var CalculationInput = function CalculationInput(props) {
|
|
19603
19636
|
var _props$config = props.config,
|
|
19604
19637
|
config = _props$config === void 0 ? {} : _props$config;
|
|
@@ -19617,7 +19650,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
19617
19650
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
19618
19651
|
};
|
|
19619
19652
|
|
|
19620
|
-
var _excluded$
|
|
19653
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
19621
19654
|
var typeMap$3 = {
|
|
19622
19655
|
BS_E3_REISSUE_GOODS: {
|
|
19623
19656
|
key: 'bsE3ReissueGoods',
|
|
@@ -19635,7 +19668,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19635
19668
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19636
19669
|
disabled = props.disabled,
|
|
19637
19670
|
type = props.type,
|
|
19638
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19671
|
+
other = _objectWithoutProperties(props, _excluded$o);
|
|
19639
19672
|
var getOrderFlag = useRef(false);
|
|
19640
19673
|
var valueRef = useRef(null);
|
|
19641
19674
|
var _useState = useState(false),
|
|
@@ -19853,7 +19886,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19853
19886
|
})));
|
|
19854
19887
|
};
|
|
19855
19888
|
|
|
19856
|
-
var _excluded$
|
|
19889
|
+
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19857
19890
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19858
19891
|
var typeMap$4 = {
|
|
19859
19892
|
GY_REISSUE_GOODS: {
|
|
@@ -19882,7 +19915,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19882
19915
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19883
19916
|
disabled = props.disabled,
|
|
19884
19917
|
type = props.type,
|
|
19885
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19918
|
+
other = _objectWithoutProperties(props, _excluded$p);
|
|
19886
19919
|
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
19887
19920
|
// order?.platformCode?.includes(';'),
|
|
19888
19921
|
// );
|
|
@@ -20122,7 +20155,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
20122
20155
|
})));
|
|
20123
20156
|
};
|
|
20124
20157
|
|
|
20125
|
-
var _excluded$
|
|
20158
|
+
var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
20126
20159
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
20127
20160
|
var typeMap$5 = {
|
|
20128
20161
|
GY_RETURN_GOODS: {
|
|
@@ -20151,7 +20184,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20151
20184
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
20152
20185
|
disabled = props.disabled,
|
|
20153
20186
|
type = props.type,
|
|
20154
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
20187
|
+
other = _objectWithoutProperties(props, _excluded$q);
|
|
20155
20188
|
var valueRef = useRef({});
|
|
20156
20189
|
var getOrderFlag = useRef(false);
|
|
20157
20190
|
var _useState = useState(false),
|
|
@@ -20412,4 +20445,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20412
20445
|
})));
|
|
20413
20446
|
};
|
|
20414
20447
|
|
|
20415
|
-
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, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$3 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$4 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$2 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns };
|
|
20448
|
+
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, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$3 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$4 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$2 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns };
|
package/dist/index.js
CHANGED
|
@@ -19611,6 +19611,39 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19611
19611
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
|
|
19612
19612
|
};
|
|
19613
19613
|
|
|
19614
|
+
var _excluded$n = ["showOnly", "getOptionsAsync"];
|
|
19615
|
+
var AsyncSelect = function AsyncSelect(props) {
|
|
19616
|
+
var _props$showOnly = props.showOnly,
|
|
19617
|
+
showOnly = _props$showOnly === void 0 ? false : _props$showOnly,
|
|
19618
|
+
getOptionsAsync = props.getOptionsAsync,
|
|
19619
|
+
otherProps = _objectWithoutProperties(props, _excluded$n);
|
|
19620
|
+
var _React$useState = React__default['default'].useState([]),
|
|
19621
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
19622
|
+
data = _React$useState2[0],
|
|
19623
|
+
setData = _React$useState2[1];
|
|
19624
|
+
React__default['default'].useEffect(function () {
|
|
19625
|
+
getOptionsAsync === null || getOptionsAsync === void 0 ? void 0 : getOptionsAsync().then(function (list) {
|
|
19626
|
+
setData(list);
|
|
19627
|
+
});
|
|
19628
|
+
}, []);
|
|
19629
|
+
var options = [].concat(_toConsumableArray(props.options || []), _toConsumableArray(data || []));
|
|
19630
|
+
if (showOnly) {
|
|
19631
|
+
var selectedItem = options.find(function (option) {
|
|
19632
|
+
return option.value === props.value;
|
|
19633
|
+
});
|
|
19634
|
+
return selectedItem ? selectedItem.label : props.value;
|
|
19635
|
+
}
|
|
19636
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
19637
|
+
showSearch: true,
|
|
19638
|
+
filterOption: function filterOption(input, option) {
|
|
19639
|
+
return option.label.includes(input);
|
|
19640
|
+
},
|
|
19641
|
+
notFoundContent: null
|
|
19642
|
+
}, otherProps), {}, {
|
|
19643
|
+
options: options
|
|
19644
|
+
}));
|
|
19645
|
+
};
|
|
19646
|
+
|
|
19614
19647
|
var CalculationInput = function CalculationInput(props) {
|
|
19615
19648
|
var _props$config = props.config,
|
|
19616
19649
|
config = _props$config === void 0 ? {} : _props$config;
|
|
@@ -19629,7 +19662,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
19629
19662
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
19630
19663
|
};
|
|
19631
19664
|
|
|
19632
|
-
var _excluded$
|
|
19665
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
19633
19666
|
var typeMap$3 = {
|
|
19634
19667
|
BS_E3_REISSUE_GOODS: {
|
|
19635
19668
|
key: 'bsE3ReissueGoods',
|
|
@@ -19647,7 +19680,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19647
19680
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19648
19681
|
disabled = props.disabled,
|
|
19649
19682
|
type = props.type,
|
|
19650
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19683
|
+
other = _objectWithoutProperties(props, _excluded$o);
|
|
19651
19684
|
var getOrderFlag = React.useRef(false);
|
|
19652
19685
|
var valueRef = React.useRef(null);
|
|
19653
19686
|
var _useState = React.useState(false),
|
|
@@ -19865,7 +19898,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19865
19898
|
})));
|
|
19866
19899
|
};
|
|
19867
19900
|
|
|
19868
|
-
var _excluded$
|
|
19901
|
+
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19869
19902
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19870
19903
|
var typeMap$4 = {
|
|
19871
19904
|
GY_REISSUE_GOODS: {
|
|
@@ -19894,7 +19927,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
19894
19927
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19895
19928
|
disabled = props.disabled,
|
|
19896
19929
|
type = props.type,
|
|
19897
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19930
|
+
other = _objectWithoutProperties(props, _excluded$p);
|
|
19898
19931
|
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
19899
19932
|
// order?.platformCode?.includes(';'),
|
|
19900
19933
|
// );
|
|
@@ -20134,7 +20167,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
20134
20167
|
})));
|
|
20135
20168
|
};
|
|
20136
20169
|
|
|
20137
|
-
var _excluded$
|
|
20170
|
+
var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
20138
20171
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
20139
20172
|
var typeMap$5 = {
|
|
20140
20173
|
GY_RETURN_GOODS: {
|
|
@@ -20163,7 +20196,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20163
20196
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
20164
20197
|
disabled = props.disabled,
|
|
20165
20198
|
type = props.type,
|
|
20166
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
20199
|
+
other = _objectWithoutProperties(props, _excluded$q);
|
|
20167
20200
|
var valueRef = React.useRef({});
|
|
20168
20201
|
var getOrderFlag = React.useRef(false);
|
|
20169
20202
|
var _useState = React.useState(false),
|
|
@@ -20445,6 +20478,7 @@ exports.ApaasUpload = ApaasUpload;
|
|
|
20445
20478
|
exports.ApaasUploadAsync = index;
|
|
20446
20479
|
exports.ApaasUploadFile = ApaasUploadFile;
|
|
20447
20480
|
exports.ApaasUploadProAsync = index$1;
|
|
20481
|
+
exports.AsyncSelect = AsyncSelect;
|
|
20448
20482
|
exports.BsE3Reissue = bsE3Reissue;
|
|
20449
20483
|
exports.BsExchange = BsExchange;
|
|
20450
20484
|
exports.BsGoods = BsGoods;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export { default as CommonStatus } from './common/CommonStatus';
|
|
|
57
57
|
export { default as CommonSystemOrder } from './common/CommonSystemOrder';
|
|
58
58
|
export { default as CommonMultiStatus } from './common/CommonMultiStatus';
|
|
59
59
|
export { default as MsgStatus } from './common/MsgStatus';
|
|
60
|
+
export { default as AsyncSelect } from './common/AsyncSelect';
|
|
60
61
|
export { default as ParseLogistics } from './common/ParseLogistics';
|
|
61
62
|
export { default as IdentifyAddress } from './common/IdentifyAddress';
|
|
62
63
|
export { default as CalculationInput } from './apaas/CalculationInput';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.61",
|
|
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": "2.0.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.61",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"bignumber.js": "^9.1.2",
|
|
26
26
|
"kmkf-monitor": "^0.8.9",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "ef08879d621387f54844cfea45999ff003326c7d"
|
|
69
69
|
}
|