@kmkf-fe-packages/services-components 0.7.15-alpha.51 → 0.7.15-alpha.53
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.
|
@@ -9,5 +9,5 @@ declare type ShopListProps = {
|
|
|
9
9
|
shopList: Shop[];
|
|
10
10
|
[prop: string]: any;
|
|
11
11
|
};
|
|
12
|
-
declare const ShopList: ({ shopList, onChange, setShopId, ...prop }: ShopListProps) => React.JSX.Element;
|
|
12
|
+
declare const ShopList: ({ shopList, valueMapping, onChange, setShopId, ...prop }: ShopListProps) => React.JSX.Element;
|
|
13
13
|
export default ShopList;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["shopList", "onChange", "setShopId"];
|
|
1
|
+
var _excluded = ["shopList", "valueMapping", "onChange", "setShopId"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -8,6 +8,8 @@ import PlatformAvatar from "../PlatformAvatar";
|
|
|
8
8
|
var ShopList = function ShopList(_ref) {
|
|
9
9
|
var _shopList$filter;
|
|
10
10
|
var shopList = _ref.shopList,
|
|
11
|
+
_ref$valueMapping = _ref.valueMapping,
|
|
12
|
+
valueMapping = _ref$valueMapping === void 0 ? "shopId" : _ref$valueMapping,
|
|
11
13
|
onChange = _ref.onChange,
|
|
12
14
|
setShopId = _ref.setShopId,
|
|
13
15
|
prop = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -21,7 +23,7 @@ var ShopList = function ShopList(_ref) {
|
|
|
21
23
|
return (item === null || item === void 0 ? void 0 : item.auditStatus) === 1;
|
|
22
24
|
})) === null || _shopList$filter === void 0 ? void 0 : _shopList$filter.map(function (item) {
|
|
23
25
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
24
|
-
value: item
|
|
26
|
+
value: item === null || item === void 0 ? void 0 : item[valueMapping],
|
|
25
27
|
label: item.shopName
|
|
26
28
|
}, /*#__PURE__*/React.createElement(PlatformAvatar, {
|
|
27
29
|
styles: {
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => ShopInput | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsExchange | BsReissue | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | Submitter | Handler | CompletedUser | FlowWorkOrderId;
|
package/dist/esm/factory.js
CHANGED
|
@@ -121,9 +121,9 @@ export var factory = function factory(type, options) {
|
|
|
121
121
|
return new BsExchange(options);
|
|
122
122
|
case "BS_REISSUE_GOODS":
|
|
123
123
|
return new BsReissue(options);
|
|
124
|
-
case "
|
|
124
|
+
case "FLOW_WORK_ORDER_ID_INPUT":
|
|
125
125
|
return new FlowWorkOrderId(options);
|
|
126
|
-
case "
|
|
126
|
+
case "OUTER_WORK_ORDER_ID_INPUT":
|
|
127
127
|
return new FlowWorkOrderId(options);
|
|
128
128
|
default:
|
|
129
129
|
return new BasicInput(options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.7.15-alpha.
|
|
3
|
+
"version": "0.7.15-alpha.53",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"father": "^4.1.7"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.7.15-alpha.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.7.15-alpha.52",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.52"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "502a208b6799bfaf300dd0da95f3c1653975b225"
|
|
44
44
|
}
|