@kmkf-fe-packages/basic-components 0.8.16-alpha.0 → 0.8.17-alpha.0

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
@@ -11394,4 +11394,26 @@ var Goods$1 = function Goods(props, ref) {
11394
11394
  };
11395
11395
  var index$1 = /*#__PURE__*/forwardRef(Goods$1);
11396
11396
 
11397
- 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, ApaasUploadAsync, ApaasUploadAsync$1 as ApaasUploadFile, BsExchange, BsGoods, BsReissue, index as BsSystemOrder, BuyerNick, ChooseBaby, ExpressLogistics, Goods, index$1 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsTrajectory, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId };
11397
+ var _excluded$f = ["onChange", "value", "failValue"];
11398
+ function MultiStatus(props) {
11399
+ var onChange = props.onChange,
11400
+ value = props.value,
11401
+ failValue = props.failValue,
11402
+ other = _objectWithoutProperties(props, _excluded$f);
11403
+ var changeHandle = function changeHandle(val) {
11404
+ onChange === null || onChange === void 0 ? void 0 : onChange({
11405
+ status: val,
11406
+ reason: failValue === val ? '' : value === null || value === void 0 ? void 0 : value.reason
11407
+ });
11408
+ };
11409
+ return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
11410
+ showSearch: true,
11411
+ filterOption: function filterOption(input, option) {
11412
+ return option.label.includes(input);
11413
+ }
11414
+ }, other), {}, {
11415
+ onChange: changeHandle
11416
+ }));
11417
+ }
11418
+
11419
+ 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, ApaasUploadAsync, ApaasUploadAsync$1 as ApaasUploadFile, BsExchange, BsGoods, BsReissue, index as BsSystemOrder, BuyerNick, ChooseBaby, MultiStatus as CommonStatus, ExpressLogistics, Goods, index$1 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsTrajectory, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId };
package/dist/index.js CHANGED
@@ -11405,6 +11405,28 @@ var Goods$1 = function Goods(props, ref) {
11405
11405
  };
11406
11406
  var index$1 = /*#__PURE__*/React.forwardRef(Goods$1);
11407
11407
 
11408
+ var _excluded$f = ["onChange", "value", "failValue"];
11409
+ function MultiStatus(props) {
11410
+ var onChange = props.onChange,
11411
+ value = props.value,
11412
+ failValue = props.failValue,
11413
+ other = _objectWithoutProperties(props, _excluded$f);
11414
+ var changeHandle = function changeHandle(val) {
11415
+ onChange === null || onChange === void 0 ? void 0 : onChange({
11416
+ status: val,
11417
+ reason: failValue === val ? '' : value === null || value === void 0 ? void 0 : value.reason
11418
+ });
11419
+ };
11420
+ return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
11421
+ showSearch: true,
11422
+ filterOption: function filterOption(input, option) {
11423
+ return option.label.includes(input);
11424
+ }
11425
+ }, other), {}, {
11426
+ onChange: changeHandle
11427
+ }));
11428
+ }
11429
+
11408
11430
  exports.Address = ApaasAddress;
11409
11431
  exports.AliPay = AliPay;
11410
11432
  exports.ApaasAddress = Province;
@@ -11431,6 +11453,7 @@ exports.BsReissue = BsReissue;
11431
11453
  exports.BsSystemOrder = index;
11432
11454
  exports.BuyerNick = BuyerNick;
11433
11455
  exports.ChooseBaby = ChooseBaby;
11456
+ exports.CommonStatus = MultiStatus;
11434
11457
  exports.ExpressLogistics = ExpressLogistics;
11435
11458
  exports.Goods = Goods;
11436
11459
  exports.GoodsTable = index$1;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface MultiStatusProps {
3
+ value: {
4
+ status: string;
5
+ reason: string;
6
+ };
7
+ failValue: string;
8
+ options: any[];
9
+ onChange: (val: any) => void;
10
+ }
11
+ declare function MultiStatus(props: Partial<MultiStatusProps>): React.JSX.Element;
12
+ export default MultiStatus;
@@ -41,5 +41,6 @@ export { default as BsExchange } from './bs/Exchange';
41
41
  export { default as BsReissue } from './bs/Reissue';
42
42
  export { default as BsSystemOrder } from './bs/SystemOrder';
43
43
  export { default as GoodsTable } from './common/GoodsTable';
44
+ export { default as CommonStatus } from './common/CommonStatus';
44
45
  export { default as ParseLogistics } from './common/ParseLogistics';
45
46
  export { default as IdentifyAddress } from './common/IdentifyAddress';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.8.16-alpha.0",
3
+ "version": "0.8.17-alpha.0",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "8bd0b6f4781c505566aa77ac1d0170110bf04f2e"
63
+ "gitHead": "c13dc970c6b6ea43fbbe86a15fea51336ee084ce"
64
64
  }