@kmkf-fe-packages/basic-components 0.14.1-alpha.8 → 0.14.1

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, useMemo, forwardRef, useImperativeHandle } from 'react';
1
+ import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo } 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) {
902
+ var ApaasUploadAsync = function ApaasUploadAsync(_ref, 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,6 +1120,11 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref) {
1120
1120
  });
1121
1121
  };
1122
1122
  }, [pasteDefaultStates]);
1123
+ useImperativeHandle(ref, function () {
1124
+ return {
1125
+ taskCompleted: !uploading
1126
+ };
1127
+ }, [uploading]);
1123
1128
  return /*#__PURE__*/React.createElement(Spin, {
1124
1129
  spinning: uploading
1125
1130
  }, /*#__PURE__*/React.createElement("p", {
@@ -1172,6 +1177,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref) {
1172
1177
  }
1173
1178
  })));
1174
1179
  };
1180
+ var index = /*#__PURE__*/forwardRef(ApaasUploadAsync);
1175
1181
 
1176
1182
  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";
1177
1183
  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"};
@@ -11118,7 +11124,7 @@ var columnsNameMap = {
11118
11124
  tagName: '标记'
11119
11125
  }
11120
11126
  };
11121
- var index = (function (props) {
11127
+ var index$1 = (function (props) {
11122
11128
  var value = props.value,
11123
11129
  _onChange = props.onChange,
11124
11130
  disabled = props.disabled,
@@ -11758,7 +11764,7 @@ var Goods$1 = function Goods(props, ref) {
11758
11764
  userNick: userNick
11759
11765
  }));
11760
11766
  };
11761
- var index$1 = /*#__PURE__*/forwardRef(Goods$1);
11767
+ var index$2 = /*#__PURE__*/forwardRef(Goods$1);
11762
11768
 
11763
11769
  var _excluded$g = ["onChange", "value", "failValue"];
11764
11770
  function CommonStatus(props) {
@@ -11945,73 +11951,6 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11945
11951
  }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
11946
11952
  };
11947
11953
 
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
-
12015
11954
  var CalculationInput = function CalculationInput(props) {
12016
11955
  var _props$config = props.config,
12017
11956
  config = _props$config === void 0 ? {} : _props$config;
@@ -12030,4 +11969,4 @@ var CalculationInput = function CalculationInput(props) {
12030
11969
  }, config === null || config === void 0 ? void 0 : config.unit));
12031
11970
  };
12032
11971
 
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 };
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 };
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) {
913
+ var ApaasUploadAsync = function ApaasUploadAsync(_ref, 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,6 +1131,11 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref) {
1131
1131
  });
1132
1132
  };
1133
1133
  }, [pasteDefaultStates]);
1134
+ React.useImperativeHandle(ref, function () {
1135
+ return {
1136
+ taskCompleted: !uploading
1137
+ };
1138
+ }, [uploading]);
1134
1139
  return /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
1135
1140
  spinning: uploading
1136
1141
  }, /*#__PURE__*/React__default['default'].createElement("p", {
@@ -1183,6 +1188,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref) {
1183
1188
  }
1184
1189
  })));
1185
1190
  };
1191
+ var index = /*#__PURE__*/React.forwardRef(ApaasUploadAsync);
1186
1192
 
1187
1193
  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";
1188
1194
  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"};
@@ -11129,7 +11135,7 @@ var columnsNameMap = {
11129
11135
  tagName: '标记'
11130
11136
  }
11131
11137
  };
11132
- var index = (function (props) {
11138
+ var index$1 = (function (props) {
11133
11139
  var value = props.value,
11134
11140
  _onChange = props.onChange,
11135
11141
  disabled = props.disabled,
@@ -11769,7 +11775,7 @@ var Goods$1 = function Goods(props, ref) {
11769
11775
  userNick: userNick
11770
11776
  }));
11771
11777
  };
11772
- var index$1 = /*#__PURE__*/React.forwardRef(Goods$1);
11778
+ var index$2 = /*#__PURE__*/React.forwardRef(Goods$1);
11773
11779
 
11774
11780
  var _excluded$g = ["onChange", "value", "failValue"];
11775
11781
  function CommonStatus(props) {
@@ -11956,73 +11962,6 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11956
11962
  }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
11957
11963
  };
11958
11964
 
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
-
12026
11965
  var CalculationInput = function CalculationInput(props) {
12027
11966
  var _props$config = props.config,
12028
11967
  config = _props$config === void 0 ? {} : _props$config;
@@ -12059,13 +11998,13 @@ exports.ApaasSelect = ApaasSelect;
12059
11998
  exports.ApaasSlider = ApaasSlider;
12060
11999
  exports.ApaasTextArea = ApaasTextArea;
12061
12000
  exports.ApaasUpload = ApaasUpload;
12062
- exports.ApaasUploadAsync = ApaasUploadAsync;
12001
+ exports.ApaasUploadAsync = index;
12063
12002
  exports.ApaasUploadFile = ApaasUploadFile;
12064
12003
  exports.BsExchange = BsExchange;
12065
12004
  exports.BsGoods = BsGoods;
12066
12005
  exports.BsReissue = BsReissue;
12067
12006
  exports.BsReturn = BsReturnGoods;
12068
- exports.BsSystemOrder = index;
12007
+ exports.BsSystemOrder = index$1;
12069
12008
  exports.BuyerNick = BuyerNick;
12070
12009
  exports.CalculationInput = CalculationInput;
12071
12010
  exports.ChooseBaby = ChooseBaby;
@@ -12074,14 +12013,13 @@ exports.CommonStatus = CommonStatus;
12074
12013
  exports.CommonSystemOrder = CommonSystemOrder;
12075
12014
  exports.ExpressLogistics = ExpressLogistics;
12076
12015
  exports.Goods = Goods;
12077
- exports.GoodsTable = index$1;
12016
+ exports.GoodsTable = index$2;
12078
12017
  exports.IdentifyAddress = IdentifyAddress;
12079
12018
  exports.Invoice = Invoice;
12080
12019
  exports.JstGoods = jstGoods;
12081
12020
  exports.JstItemList = ItemList;
12082
12021
  exports.LogisticsInterception = LogisticsInterception;
12083
12022
  exports.LogisticsTrajectory = LogisticsTrajectory;
12084
- exports.MsgStatus = MsgStatus;
12085
12023
  exports.ParseLogistics = ParseLogistics;
12086
12024
  exports.Payment = Payment;
12087
12025
  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 ApaasUploadAsync: ({ maxCount, maxSize, uploadText, onChange, value, accept, canPreview, disabled, uniqueKey, hostUrl, actionUrl, ...resetProps }: ApaasUploadProps) => React.JSX.Element;
17
- export default ApaasUploadAsync;
16
+ declare const _default: React.ForwardRefExoticComponent<ApaasUploadProps & React.RefAttributes<any>>;
17
+ export default _default;
@@ -46,7 +46,6 @@ 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';
50
49
  export { default as ParseLogistics } from './common/ParseLogistics';
51
50
  export { default as IdentifyAddress } from './common/IdentifyAddress';
52
51
  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.8",
3
+ "version": "0.14.1",
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.13.1",
23
+ "@kmkf-fe-packages/kmkf-utils": "^0.14.1",
24
24
  "lodash": "^4.17.21",
25
25
  "pubsub-js": "^1.9.4",
26
26
  "react-copy-to-clipboard": "^5.1.0",
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "c1057914dd1b41a6ca53a9dbc69417f70ce519f6"
64
+ "gitHead": "6cdf51565e497213b786f988ba694684a046d697"
65
65
  }
@@ -1,15 +0,0 @@
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;