@kmkf-fe-packages/services-components 1.0.10-beta.20 → 1.0.10-beta.21
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.
|
@@ -29,9 +29,9 @@ var WidgetMap = {
|
|
|
29
29
|
};
|
|
30
30
|
var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
31
31
|
var _this = this,
|
|
32
|
-
_this$
|
|
33
|
-
_this$
|
|
34
|
-
_this$
|
|
32
|
+
_this$componentConfig7,
|
|
33
|
+
_this$componentConfig11,
|
|
34
|
+
_this$componentConfig12;
|
|
35
35
|
_classCallCheck(this, SubForm);
|
|
36
36
|
_defineProperty(this, "name", void 0);
|
|
37
37
|
_defineProperty(this, "id", void 0);
|
|
@@ -106,7 +106,7 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
106
106
|
}) : null;
|
|
107
107
|
});
|
|
108
108
|
_defineProperty(this, "editRender", function (p) {
|
|
109
|
-
var _this$componentConfig3, _this$componentConfig4;
|
|
109
|
+
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6;
|
|
110
110
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
111
111
|
title: _this.name,
|
|
112
112
|
name: _this.id,
|
|
@@ -114,6 +114,7 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
114
114
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
115
115
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
116
116
|
required: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.required) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : false,
|
|
117
|
+
tooltip: (_this$componentConfig5 = (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.tooltip) !== null && _this$componentConfig5 !== void 0 ? _this$componentConfig5 : "",
|
|
117
118
|
component: /*#__PURE__*/React.createElement(SubFormComponent, _this.componentConfig)
|
|
118
119
|
});
|
|
119
120
|
});
|
|
@@ -137,10 +138,10 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
137
138
|
this.componentConfig = options.componentConfig;
|
|
138
139
|
this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
|
|
139
140
|
this.rules = [{
|
|
140
|
-
required: (_this$
|
|
141
|
+
required: (_this$componentConfig7 = this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.required,
|
|
141
142
|
validator: function validator(_, value) {
|
|
142
|
-
var _this$
|
|
143
|
-
var result = (_this$
|
|
143
|
+
var _this$componentConfig8, _this$componentConfig9, _this$componentConfig10;
|
|
144
|
+
var result = (_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : (_this$componentConfig9 = _this$componentConfig8.subConfig) === null || _this$componentConfig9 === void 0 ? void 0 : (_this$componentConfig10 = _this$componentConfig9.config) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.reduce(function (prv, next) {
|
|
144
145
|
if (next.isRequired && next.isShow && !next.isEdit) {
|
|
145
146
|
prv[next.key] = "".concat(next.name, "\u4E0D\u80FD\u4E3A\u7A7A");
|
|
146
147
|
}
|
|
@@ -162,7 +163,7 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
162
163
|
}];
|
|
163
164
|
this.isCombinationComponent = true;
|
|
164
165
|
this.canSort = false;
|
|
165
|
-
this.children = (((_this$
|
|
166
|
+
this.children = (((_this$componentConfig11 = this.componentConfig) === null || _this$componentConfig11 === void 0 ? void 0 : (_this$componentConfig12 = _this$componentConfig11.subConfig) === null || _this$componentConfig12 === void 0 ? void 0 : _this$componentConfig12.config) || []).map(function (item) {
|
|
166
167
|
return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
167
168
|
name: item.name,
|
|
168
169
|
id: "".concat(options.id, "_productList_").concat(item.key)
|
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, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, KmErpSendGood, AfterSalesOrderId } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => AfterSalesOrderId | AliPay | BasicCascader | CommonMultiStatus | CommonSystemOrder | FlowMarkSelect | BasicInput | KmErpSendGood | Label | MsgStatus | StatusSelect | WdtExchange | WdtReturn | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => AfterSalesOrderId | AliPay | BasicCascader | CommonMultiStatus | CommonSystemOrder | FlowMarkSelect | BasicInput | KmErpSendGood | Label | MsgStatus | StatusSelect | BasicTextArea | SubForm | WdtExchange | WdtReturn | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | CommonInput | PaymentVoucherCode;
|
package/dist/esm/type.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.0.10-beta.
|
|
3
|
+
"version": "1.0.10-beta.21",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "1.0.10-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.0.10-beta.21",
|
|
25
25
|
"@kmkf-fe-packages/kmkf-utils": "1.0.10-beta.17"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "3b4dc8e6a515a354b3887386000f1a14c4ee0caf",
|
|
42
42
|
"gitHooks": {
|
|
43
43
|
"pre-commit": "lint-staged"
|
|
44
44
|
}
|