@kmkf-fe-packages/basic-components 0.8.13-alpha.0 → 0.8.13-alpha.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 CHANGED
@@ -11304,4 +11304,26 @@ var Goods$1 = function Goods(props, ref) {
11304
11304
  };
11305
11305
  var index = /*#__PURE__*/forwardRef(Goods$1);
11306
11306
 
11307
- 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, BuyerNick, ChooseBaby, ExpressLogistics, Goods, index 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 };
11307
+ var _excluded$f = ["onChange", "value", "failValue"];
11308
+ function MultiStatus(props) {
11309
+ var onChange = props.onChange,
11310
+ value = props.value,
11311
+ failValue = props.failValue,
11312
+ other = _objectWithoutProperties(props, _excluded$f);
11313
+ var changeHandle = function changeHandle(val) {
11314
+ onChange === null || onChange === void 0 ? void 0 : onChange({
11315
+ status: val,
11316
+ reason: failValue === val ? '' : value === null || value === void 0 ? void 0 : value.reason
11317
+ });
11318
+ };
11319
+ return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
11320
+ showSearch: true,
11321
+ filterOption: function filterOption(input, option) {
11322
+ return option.label.includes(input);
11323
+ }
11324
+ }, other), {}, {
11325
+ onChange: changeHandle
11326
+ }));
11327
+ }
11328
+
11329
+ 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, BuyerNick, ChooseBaby, MultiStatus as CommonStatus, ExpressLogistics, Goods, index 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
@@ -11315,6 +11315,28 @@ var Goods$1 = function Goods(props, ref) {
11315
11315
  };
11316
11316
  var index = /*#__PURE__*/React.forwardRef(Goods$1);
11317
11317
 
11318
+ var _excluded$f = ["onChange", "value", "failValue"];
11319
+ function MultiStatus(props) {
11320
+ var onChange = props.onChange,
11321
+ value = props.value,
11322
+ failValue = props.failValue,
11323
+ other = _objectWithoutProperties(props, _excluded$f);
11324
+ var changeHandle = function changeHandle(val) {
11325
+ onChange === null || onChange === void 0 ? void 0 : onChange({
11326
+ status: val,
11327
+ reason: failValue === val ? '' : value === null || value === void 0 ? void 0 : value.reason
11328
+ });
11329
+ };
11330
+ return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
11331
+ showSearch: true,
11332
+ filterOption: function filterOption(input, option) {
11333
+ return option.label.includes(input);
11334
+ }
11335
+ }, other), {}, {
11336
+ onChange: changeHandle
11337
+ }));
11338
+ }
11339
+
11318
11340
  exports.Address = ApaasAddress;
11319
11341
  exports.AliPay = AliPay;
11320
11342
  exports.ApaasAddress = Province;
@@ -11340,6 +11362,7 @@ exports.BsGoods = BsGoods;
11340
11362
  exports.BsReissue = BsReissue;
11341
11363
  exports.BuyerNick = BuyerNick;
11342
11364
  exports.ChooseBaby = ChooseBaby;
11365
+ exports.CommonStatus = MultiStatus;
11343
11366
  exports.ExpressLogistics = ExpressLogistics;
11344
11367
  exports.Goods = Goods;
11345
11368
  exports.GoodsTable = index;
@@ -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;
@@ -40,5 +40,6 @@ export { default as BsGoods } from './bs/Goods';
40
40
  export { default as BsExchange } from './bs/Exchange';
41
41
  export { default as BsReissue } from './bs/Reissue';
42
42
  export { default as GoodsTable } from './common/GoodsTable';
43
+ export { default as CommonStatus } from './common/CommonStatus';
43
44
  export { default as ParseLogistics } from './common/ParseLogistics';
44
45
  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.13-alpha.0",
3
+ "version": "0.8.13-alpha.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": "^0.8.13-alpha.0",
23
+ "@kmkf-fe-packages/kmkf-utils": "^0.8.13-alpha.3",
24
24
  "lodash": "^4.17.21",
25
25
  "pubsub-js": "^1.9.4",
26
26
  "react-copy-to-clipboard": "^5.1.0",
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "9ff89895b9babf0bc9e6b4d195bca2e05a1746e5"
63
+ "gitHead": "e58e0cdec5ee262d63ba5694f112b422227240cd"
64
64
  }