@kmkf-fe-packages/basic-components 0.14.1-alpha.7 → 0.14.1-alpha.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 CHANGED
@@ -1,4 +1,4 @@
1
- import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo } from 'react';
1
+ import React, { useRef, useState, useEffect, useMemo, forwardRef, useImperativeHandle } from 'react';
2
2
  import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Tabs, ConfigProvider, Pagination, Popover, Table } from 'antd';
3
3
  import { EyeOutlined, DeleteOutlined } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
@@ -899,7 +899,7 @@ var _excluded$6 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "ac
899
899
  var fn$1 = function fn() {
900
900
  return void 0;
901
901
  };
902
- var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
902
+ var ApaasUploadAsync = function ApaasUploadAsync(_ref) {
903
903
  var _ref$maxCount = _ref.maxCount,
904
904
  maxCount = _ref$maxCount === void 0 ? 10 : _ref$maxCount,
905
905
  _ref$maxSize = _ref.maxSize,
@@ -1120,11 +1120,6 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
1120
1120
  });
1121
1121
  };
1122
1122
  }, [pasteDefaultStates]);
1123
- useImperativeHandle(ref, function () {
1124
- return {
1125
- taskCompleted: !uploading
1126
- };
1127
- }, [uploading]);
1128
1123
  return /*#__PURE__*/React.createElement(Spin, {
1129
1124
  spinning: uploading
1130
1125
  }, /*#__PURE__*/React.createElement("p", {
@@ -1177,7 +1172,6 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
1177
1172
  }
1178
1173
  })));
1179
1174
  };
1180
- var index = /*#__PURE__*/forwardRef(ApaasUploadAsync);
1181
1175
 
1182
1176
  var css_248z$2 = ".index-module_imageBox__1rpoB {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageBox__1rpoB .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageBox__1rpoB .index-module_inputImage__MyiR1 {\n width: 80px;\n height: 80px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imageShow__3BNqT {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP {\n width: 100px;\n height: 80px;\n position: relative;\n border-radius: 2px;\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP:hover {\n background: transparent;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP:hover .index-module_mask__uy8r2:before {\n opacity: 1;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP .index-module_delete__28zCp {\n position: absolute;\n right: 0px;\n top: 0px;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2:hover .index-module_actions__1-6f4 {\n opacity: 1;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 .index-module_actions__1-6f4 {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 .index-module_actions__1-6f4 .index-module_icon__3yEcS {\n font-size: 16px;\n color: #fff;\n padding: 0 4px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C {\n display: inline-block;\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C .index-module_fakeBox__3W1d- {\n width: 80px;\n height: 80px;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n padding-top: 16px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C .index-module_fakeBox__3W1d- .index-module_addBtn__3a1TQ {\n color: #86909C;\n}\n.index-module_imageBox__1rpoB .ant-upload {\n padding: 0;\n height: 80px;\n width: 80px;\n border: none;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n font-size: 14px;\n}\n.index-module_imageBox__1rpoB .ant-upload .index-module_addBtn__3a1TQ {\n color: #86909C;\n font-size: 14px;\n}\n.index-module_tips__168Vy {\n color: #4E5969;\n font-size: 12px;\n}\n";
1183
1177
  var styles$2 = {"imageBox":"index-module_imageBox__1rpoB","inputImage":"index-module_inputImage__MyiR1","imageShow":"index-module_imageShow__3BNqT","imageWrap":"index-module_imageWrap__LyKfP","-webkit-mask":"index-module_mask__uy8r2","mask":"index-module_mask__uy8r2","delete":"index-module_delete__28zCp","actions":"index-module_actions__1-6f4","icon":"index-module_icon__3yEcS","imagePaste":"index-module_imagePaste__Ac77C","fakeBox":"index-module_fakeBox__3W1d-","addBtn":"index-module_addBtn__3a1TQ","tips":"index-module_tips__168Vy"};
@@ -11124,7 +11118,7 @@ var columnsNameMap = {
11124
11118
  tagName: '标记'
11125
11119
  }
11126
11120
  };
11127
- var index$1 = (function (props) {
11121
+ var index = (function (props) {
11128
11122
  var value = props.value,
11129
11123
  _onChange = props.onChange,
11130
11124
  disabled = props.disabled,
@@ -11764,7 +11758,7 @@ var Goods$1 = function Goods(props, ref) {
11764
11758
  userNick: userNick
11765
11759
  }));
11766
11760
  };
11767
- var index$2 = /*#__PURE__*/forwardRef(Goods$1);
11761
+ var index$1 = /*#__PURE__*/forwardRef(Goods$1);
11768
11762
 
11769
11763
  var _excluded$g = ["onChange", "value", "failValue"];
11770
11764
  function CommonStatus(props) {
@@ -11951,6 +11945,73 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11951
11945
  }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
11952
11946
  };
11953
11947
 
11948
+ var _excluded$i = ["value", "onChange", "disabled", "failValue", "type"];
11949
+ var msgTypeCh = {
11950
+ 'ding': '钉钉',
11951
+ 'wechat': '微信',
11952
+ 'qq': 'QQ',
11953
+ 'qywx': '企业微信'
11954
+ };
11955
+ var MsgStatus = function MsgStatus(props) {
11956
+ var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
11957
+ var _props$value = props.value,
11958
+ value = _props$value === void 0 ? [] : _props$value,
11959
+ onChange = props.onChange,
11960
+ disabled = props.disabled,
11961
+ failValue = props.failValue,
11962
+ _props$type = props.type,
11963
+ type = _props$type === void 0 ? 1 : _props$type,
11964
+ other = _objectWithoutProperties(props, _excluded$i);
11965
+ var _useState = useState(0),
11966
+ _useState2 = _slicedToArray(_useState, 2),
11967
+ changeIndex = _useState2[0],
11968
+ setChangeIndex = _useState2[1]; //选中的包裹
11969
+ var changeHandle = function changeHandle(val, valType) {
11970
+ var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
11971
+ changeOrderInfo[valType] = val;
11972
+ if (val !== failValue) {
11973
+ changeOrderInfo.reason = '';
11974
+ }
11975
+ var newList = _toConsumableArray(value);
11976
+ newList[changeIndex] = changeOrderInfo;
11977
+ onChange === null || onChange === void 0 ? void 0 : onChange(newList);
11978
+ };
11979
+ //判断是否是单个且没有商品数据
11980
+ var isSingle = useMemo(function () {
11981
+ return value && value.length === 1;
11982
+ }, [value]);
11983
+ return /*#__PURE__*/React.createElement("div", null, !isSingle ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, {
11984
+ wrap: true
11985
+ }, (value || []).map(function (item, index) {
11986
+ var key = item.msgType || 'ding';
11987
+ return /*#__PURE__*/React.createElement("span", {
11988
+ style: {
11989
+ color: changeIndex === index ? '#4569d4' : 'black',
11990
+ cursor: 'pointer'
11991
+ },
11992
+ onClick: function onClick() {
11993
+ return setChangeIndex(index);
11994
+ }
11995
+ }, msgTypeCh[key], item.ruleName);
11996
+ }))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
11997
+ showSearch: true,
11998
+ value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
11999
+ filterOption: function filterOption(input, option) {
12000
+ return option.label.includes(input);
12001
+ },
12002
+ style: {
12003
+ width: 200
12004
+ },
12005
+ placeholder: "\u8BF7\u9009\u62E9",
12006
+ disabled: disabled,
12007
+ onChange: function onChange(val) {
12008
+ return changeHandle(val, 'status');
12009
+ }
12010
+ }))), ((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.reason) ? /*#__PURE__*/React.createElement("div", {
12011
+ className: "c-red"
12012
+ }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
12013
+ };
12014
+
11954
12015
  var CalculationInput = function CalculationInput(props) {
11955
12016
  var _props$config = props.config,
11956
12017
  config = _props$config === void 0 ? {} : _props$config;
@@ -11969,4 +12030,4 @@ var CalculationInput = function CalculationInput(props) {
11969
12030
  }, config === null || config === void 0 ? void 0 : config.unit));
11970
12031
  };
11971
12032
 
11972
- 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, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonSystemOrder$1 as CommonMultiStatus, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 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, WlnGoods };
12033
+ 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, ApaasUploadFile, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonSystemOrder$1 as CommonMultiStatus, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$1 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId, WlnGoods };
package/dist/index.js CHANGED
@@ -910,7 +910,7 @@ var _excluded$6 = ["maxCount", "maxSize", "uploadText", "onChange", "value", "ac
910
910
  var fn$1 = function fn() {
911
911
  return void 0;
912
912
  };
913
- var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
913
+ var ApaasUploadAsync = function ApaasUploadAsync(_ref) {
914
914
  var _ref$maxCount = _ref.maxCount,
915
915
  maxCount = _ref$maxCount === void 0 ? 10 : _ref$maxCount,
916
916
  _ref$maxSize = _ref.maxSize,
@@ -1131,11 +1131,6 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
1131
1131
  });
1132
1132
  };
1133
1133
  }, [pasteDefaultStates]);
1134
- React.useImperativeHandle(ref, function () {
1135
- return {
1136
- taskCompleted: !uploading
1137
- };
1138
- }, [uploading]);
1139
1134
  return /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
1140
1135
  spinning: uploading
1141
1136
  }, /*#__PURE__*/React__default['default'].createElement("p", {
@@ -1188,7 +1183,6 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
1188
1183
  }
1189
1184
  })));
1190
1185
  };
1191
- var index = /*#__PURE__*/React.forwardRef(ApaasUploadAsync);
1192
1186
 
1193
1187
  var css_248z$2 = ".index-module_imageBox__1rpoB {\n display: flex;\n flex-wrap: wrap;\n}\n.index-module_imageBox__1rpoB .ant-upload-picture-card-wrapper {\n width: auto;\n}\n.index-module_imageBox__1rpoB .index-module_inputImage__MyiR1 {\n width: 80px;\n height: 80px;\n border: 1px dashed #ccc;\n outline: none;\n background-color: rgba(0, 0, 0, 0);\n text-indent: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imageShow__3BNqT {\n padding: 8px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP {\n width: 100px;\n height: 80px;\n position: relative;\n border-radius: 2px;\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP:hover {\n background: transparent;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP:hover .index-module_mask__uy8r2:before {\n opacity: 1;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.index-module_imageBox__1rpoB .index-module_imageWrap__LyKfP .index-module_delete__28zCp {\n position: absolute;\n right: 0px;\n top: 0px;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 {\n position: relative;\n height: 100%;\n overflow: hidden;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2::before {\n position: absolute;\n z-index: 1;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: all 0.3s;\n content: ' ';\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2:hover .index-module_actions__1-6f4 {\n opacity: 1;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 .index-module_actions__1-6f4 {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 10;\n white-space: nowrap;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: all 0.3s;\n}\n.index-module_imageBox__1rpoB .index-module_mask__uy8r2 .index-module_actions__1-6f4 .index-module_icon__3yEcS {\n font-size: 16px;\n color: #fff;\n padding: 0 4px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C {\n display: inline-block;\n margin-right: 8px;\n margin-bottom: 8px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C .index-module_fakeBox__3W1d- {\n width: 80px;\n height: 80px;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n padding-top: 16px;\n}\n.index-module_imageBox__1rpoB .index-module_imagePaste__Ac77C .index-module_fakeBox__3W1d- .index-module_addBtn__3a1TQ {\n color: #86909C;\n}\n.index-module_imageBox__1rpoB .ant-upload {\n padding: 0;\n height: 80px;\n width: 80px;\n border: none;\n border-radius: 2px;\n background: #F2F3F5;\n text-align: center;\n color: #86909C;\n font-size: 14px;\n}\n.index-module_imageBox__1rpoB .ant-upload .index-module_addBtn__3a1TQ {\n color: #86909C;\n font-size: 14px;\n}\n.index-module_tips__168Vy {\n color: #4E5969;\n font-size: 12px;\n}\n";
1194
1188
  var styles$2 = {"imageBox":"index-module_imageBox__1rpoB","inputImage":"index-module_inputImage__MyiR1","imageShow":"index-module_imageShow__3BNqT","imageWrap":"index-module_imageWrap__LyKfP","-webkit-mask":"index-module_mask__uy8r2","mask":"index-module_mask__uy8r2","delete":"index-module_delete__28zCp","actions":"index-module_actions__1-6f4","icon":"index-module_icon__3yEcS","imagePaste":"index-module_imagePaste__Ac77C","fakeBox":"index-module_fakeBox__3W1d-","addBtn":"index-module_addBtn__3a1TQ","tips":"index-module_tips__168Vy"};
@@ -11135,7 +11129,7 @@ var columnsNameMap = {
11135
11129
  tagName: '标记'
11136
11130
  }
11137
11131
  };
11138
- var index$1 = (function (props) {
11132
+ var index = (function (props) {
11139
11133
  var value = props.value,
11140
11134
  _onChange = props.onChange,
11141
11135
  disabled = props.disabled,
@@ -11775,7 +11769,7 @@ var Goods$1 = function Goods(props, ref) {
11775
11769
  userNick: userNick
11776
11770
  }));
11777
11771
  };
11778
- var index$2 = /*#__PURE__*/React.forwardRef(Goods$1);
11772
+ var index$1 = /*#__PURE__*/React.forwardRef(Goods$1);
11779
11773
 
11780
11774
  var _excluded$g = ["onChange", "value", "failValue"];
11781
11775
  function CommonStatus(props) {
@@ -11962,6 +11956,73 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11962
11956
  }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
11963
11957
  };
11964
11958
 
11959
+ var _excluded$i = ["value", "onChange", "disabled", "failValue", "type"];
11960
+ var msgTypeCh = {
11961
+ 'ding': '钉钉',
11962
+ 'wechat': '微信',
11963
+ 'qq': 'QQ',
11964
+ 'qywx': '企业微信'
11965
+ };
11966
+ var MsgStatus = function MsgStatus(props) {
11967
+ var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
11968
+ var _props$value = props.value,
11969
+ value = _props$value === void 0 ? [] : _props$value,
11970
+ onChange = props.onChange,
11971
+ disabled = props.disabled,
11972
+ failValue = props.failValue,
11973
+ _props$type = props.type,
11974
+ type = _props$type === void 0 ? 1 : _props$type,
11975
+ other = _objectWithoutProperties(props, _excluded$i);
11976
+ var _useState = React.useState(0),
11977
+ _useState2 = _slicedToArray(_useState, 2),
11978
+ changeIndex = _useState2[0],
11979
+ setChangeIndex = _useState2[1]; //选中的包裹
11980
+ var changeHandle = function changeHandle(val, valType) {
11981
+ var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
11982
+ changeOrderInfo[valType] = val;
11983
+ if (val !== failValue) {
11984
+ changeOrderInfo.reason = '';
11985
+ }
11986
+ var newList = _toConsumableArray(value);
11987
+ newList[changeIndex] = changeOrderInfo;
11988
+ onChange === null || onChange === void 0 ? void 0 : onChange(newList);
11989
+ };
11990
+ //判断是否是单个且没有商品数据
11991
+ var isSingle = React.useMemo(function () {
11992
+ return value && value.length === 1;
11993
+ }, [value]);
11994
+ return /*#__PURE__*/React__default['default'].createElement("div", null, !isSingle ? /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Space, {
11995
+ wrap: true
11996
+ }, (value || []).map(function (item, index) {
11997
+ var key = item.msgType || 'ding';
11998
+ return /*#__PURE__*/React__default['default'].createElement("span", {
11999
+ style: {
12000
+ color: changeIndex === index ? '#4569d4' : 'black',
12001
+ cursor: 'pointer'
12002
+ },
12003
+ onClick: function onClick() {
12004
+ return setChangeIndex(index);
12005
+ }
12006
+ }, msgTypeCh[key], item.ruleName);
12007
+ }))) : null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
12008
+ showSearch: true,
12009
+ value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
12010
+ filterOption: function filterOption(input, option) {
12011
+ return option.label.includes(input);
12012
+ },
12013
+ style: {
12014
+ width: 200
12015
+ },
12016
+ placeholder: "\u8BF7\u9009\u62E9",
12017
+ disabled: disabled,
12018
+ onChange: function onChange(val) {
12019
+ return changeHandle(val, 'status');
12020
+ }
12021
+ }))), ((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.reason) ? /*#__PURE__*/React__default['default'].createElement("div", {
12022
+ className: "c-red"
12023
+ }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
12024
+ };
12025
+
11965
12026
  var CalculationInput = function CalculationInput(props) {
11966
12027
  var _props$config = props.config,
11967
12028
  config = _props$config === void 0 ? {} : _props$config;
@@ -11998,13 +12059,13 @@ exports.ApaasSelect = ApaasSelect;
11998
12059
  exports.ApaasSlider = ApaasSlider;
11999
12060
  exports.ApaasTextArea = ApaasTextArea;
12000
12061
  exports.ApaasUpload = ApaasUpload;
12001
- exports.ApaasUploadAsync = index;
12062
+ exports.ApaasUploadAsync = ApaasUploadAsync;
12002
12063
  exports.ApaasUploadFile = ApaasUploadFile;
12003
12064
  exports.BsExchange = BsExchange;
12004
12065
  exports.BsGoods = BsGoods;
12005
12066
  exports.BsReissue = BsReissue;
12006
12067
  exports.BsReturn = BsReturnGoods;
12007
- exports.BsSystemOrder = index$1;
12068
+ exports.BsSystemOrder = index;
12008
12069
  exports.BuyerNick = BuyerNick;
12009
12070
  exports.CalculationInput = CalculationInput;
12010
12071
  exports.ChooseBaby = ChooseBaby;
@@ -12013,13 +12074,14 @@ exports.CommonStatus = CommonStatus;
12013
12074
  exports.CommonSystemOrder = CommonSystemOrder;
12014
12075
  exports.ExpressLogistics = ExpressLogistics;
12015
12076
  exports.Goods = Goods;
12016
- exports.GoodsTable = index$2;
12077
+ exports.GoodsTable = index$1;
12017
12078
  exports.IdentifyAddress = IdentifyAddress;
12018
12079
  exports.Invoice = Invoice;
12019
12080
  exports.JstGoods = jstGoods;
12020
12081
  exports.JstItemList = ItemList;
12021
12082
  exports.LogisticsInterception = LogisticsInterception;
12022
12083
  exports.LogisticsTrajectory = LogisticsTrajectory;
12084
+ exports.MsgStatus = MsgStatus;
12023
12085
  exports.ParseLogistics = ParseLogistics;
12024
12086
  exports.Payment = Payment;
12025
12087
  exports.Remark = RemarkInput;
@@ -13,5 +13,5 @@ export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'
13
13
  hostUrl?: string;
14
14
  actionUrl?: string;
15
15
  }
16
- declare const _default: React.ForwardRefExoticComponent<ApaasUploadProps & React.RefAttributes<any>>;
17
- export default _default;
16
+ declare const ApaasUploadAsync: ({ maxCount, maxSize, uploadText, onChange, value, accept, canPreview, disabled, uniqueKey, hostUrl, actionUrl, ...resetProps }: ApaasUploadProps) => React.JSX.Element;
17
+ export default ApaasUploadAsync;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ interface StatusProps {
3
+ value: {
4
+ status: string;
5
+ reason?: string;
6
+ systemOrderId?: string;
7
+ }[];
8
+ failValue: string;
9
+ options: any[];
10
+ onChange: (val: any) => void;
11
+ disabled: boolean;
12
+ type: number;
13
+ }
14
+ declare const MsgStatus: (props: Partial<StatusProps>) => React.JSX.Element;
15
+ export default MsgStatus;
@@ -46,6 +46,7 @@ export { default as GoodsTable } from './common/GoodsTable';
46
46
  export { default as CommonStatus } from './common/CommonStatus';
47
47
  export { default as CommonSystemOrder } from './common/CommonSystemOrder';
48
48
  export { default as CommonMultiStatus } from './common/CommonMultiStatus';
49
+ export { default as MsgStatus } from './common/MsgStatus';
49
50
  export { default as ParseLogistics } from './common/ParseLogistics';
50
51
  export { default as IdentifyAddress } from './common/IdentifyAddress';
51
52
  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": "0.14.1-alpha.7",
3
+ "version": "0.14.1-alpha.8",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "03c854ed021a415146e8cb82a67bfefba15f5e79"
64
+ "gitHead": "c1057914dd1b41a6ca53a9dbc69417f70ce519f6"
65
65
  }