@kmkf-fe-packages/services-components 0.13.0-alpha.9 → 0.13.0-beta.10
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/esm/components/Cascader/index.d.ts +3 -5
- package/dist/esm/components/Cascader/index.js +12 -16
- package/dist/esm/components/CommonMultiStatus/index.d.ts +9 -2
- package/dist/esm/components/CommonMultiStatus/index.js +16 -9
- package/dist/esm/components/GetFormItem/index.d.ts +1 -1
- package/dist/esm/components/GetFormItem/index.js +2 -4
- package/dist/esm/components/Input/index.d.ts +4 -5
- package/dist/esm/components/Input/index.js +9 -63
- package/dist/esm/factory.d.ts +3 -3
- package/dist/esm/factory.js +98 -98
- package/dist/esm/index.d.ts +0 -2
- package/dist/esm/index.js +0 -2
- package/dist/esm/type.d.ts +1 -2
- package/package.json +4 -4
- package/dist/esm/components/BS/BsPosting/components/City/index.d.ts +0 -29
- package/dist/esm/components/BS/BsPosting/components/City/index.js +0 -72
- package/dist/esm/components/BS/BsPosting/components/Detail/index.d.ts +0 -27
- package/dist/esm/components/BS/BsPosting/components/Detail/index.js +0 -70
- package/dist/esm/components/BS/BsPosting/components/District/index.d.ts +0 -29
- package/dist/esm/components/BS/BsPosting/components/District/index.js +0 -72
- package/dist/esm/components/BS/BsPosting/components/Province/index.d.ts +0 -29
- package/dist/esm/components/BS/BsPosting/components/Province/index.js +0 -72
- package/dist/esm/components/BS/BsPosting/components/ReceiverMobile/index.d.ts +0 -27
- package/dist/esm/components/BS/BsPosting/components/ReceiverMobile/index.js +0 -70
- package/dist/esm/components/BS/BsPosting/components/ReceiverName/index.d.ts +0 -27
- package/dist/esm/components/BS/BsPosting/components/ReceiverName/index.js +0 -70
- package/dist/esm/components/BS/BsPosting/index.d.ts +0 -43
- package/dist/esm/components/BS/BsPosting/index.js +0 -106
- package/dist/esm/components/FlowTag/index.d.ts +0 -38
- package/dist/esm/components/FlowTag/index.js +0 -126
- package/dist/esm/service/api.d.ts +0 -1
- package/dist/esm/service/api.js +0 -9
- package/dist/esm/service/request.d.ts +0 -17
- package/dist/esm/service/request.js +0 -56
package/dist/esm/factory.js
CHANGED
|
@@ -1,173 +1,173 @@
|
|
|
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, FlowMarkSelect,
|
|
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, FlowMarkSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
|
+
// CommonTradeId,
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from "./index";
|
|
2
4
|
export var factory = function factory(type, options) {
|
|
3
5
|
var _options$componentCon;
|
|
4
6
|
switch (type) {
|
|
5
|
-
case
|
|
7
|
+
case 'PLATFORM_INPUT':
|
|
6
8
|
return new PlatForm(options);
|
|
7
|
-
case
|
|
9
|
+
case 'SHOP_INPUT':
|
|
8
10
|
return new ShopInput(options);
|
|
9
|
-
case
|
|
11
|
+
case 'OPERATOR_INPUT':
|
|
10
12
|
return new Submitter(options);
|
|
11
|
-
case
|
|
13
|
+
case 'HANDLER_INPUT':
|
|
12
14
|
return new Handler(options);
|
|
13
|
-
case
|
|
15
|
+
case 'COMPLETED_USER_INPUT':
|
|
14
16
|
return new CompletedUser(options);
|
|
15
|
-
case
|
|
17
|
+
case 'INPUT':
|
|
16
18
|
return new BasicInput(options);
|
|
17
|
-
case
|
|
19
|
+
case 'RADIO':
|
|
18
20
|
return new BasicRadio(options);
|
|
19
|
-
case
|
|
21
|
+
case 'TEXTAREA':
|
|
20
22
|
return new BasicTextArea(options);
|
|
21
|
-
case
|
|
23
|
+
case 'CHECKBOX':
|
|
22
24
|
return new BasicCheckbox(options);
|
|
23
|
-
case
|
|
25
|
+
case 'DATETIME':
|
|
24
26
|
return new BasicDataTime(options);
|
|
25
|
-
case
|
|
26
|
-
case
|
|
27
|
+
case 'SELECT':
|
|
28
|
+
case 'BUYER_MESSAGE_NOTICE':
|
|
27
29
|
return new BasicSelect(options);
|
|
28
|
-
case
|
|
30
|
+
case 'PICTURE':
|
|
29
31
|
return new BasicPicture(options);
|
|
30
|
-
case
|
|
32
|
+
case 'BASIC_MULT_SELECT':
|
|
31
33
|
return new BasicMultSelect(options);
|
|
32
|
-
case
|
|
34
|
+
case 'MULT_SELECT':
|
|
33
35
|
return new BasicCascader(options);
|
|
34
|
-
case
|
|
36
|
+
case 'BASIC_ADDRESS':
|
|
35
37
|
return new BasicAddress(options);
|
|
36
|
-
case
|
|
38
|
+
case 'BASIC_GRADE':
|
|
37
39
|
return new BasicGrade(options);
|
|
38
|
-
case
|
|
40
|
+
case 'RATE':
|
|
39
41
|
return new BasicRate(options);
|
|
40
|
-
case
|
|
42
|
+
case 'FILE':
|
|
41
43
|
return new BasicFile(options);
|
|
42
|
-
case
|
|
44
|
+
case 'POSTING':
|
|
43
45
|
return new BasicPosting(options);
|
|
44
|
-
case
|
|
46
|
+
case 'SHOP_NAME_INPUT':
|
|
45
47
|
return new ShopName(options);
|
|
46
|
-
case
|
|
48
|
+
case 'TRADE_ID_INPUT':
|
|
47
49
|
return options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.erpFlag ? new ErpTradeId(options) : new TradeId(options);
|
|
48
|
-
case
|
|
50
|
+
case 'BUYER_NICK_INPUT':
|
|
49
51
|
return new BuyerNick(options);
|
|
50
|
-
case
|
|
52
|
+
case 'RECEIVER_NAME_INPUT':
|
|
51
53
|
return new ReceiverName(options);
|
|
52
|
-
case
|
|
54
|
+
case 'RECEIVER_MOBILE_INPUT':
|
|
53
55
|
return new ReceiverMobile(options);
|
|
54
|
-
case
|
|
56
|
+
case 'RECEIVER_ADDRESS_INPUT':
|
|
55
57
|
return new ReceiverAddress(options);
|
|
56
|
-
case
|
|
57
|
-
case
|
|
58
|
-
case
|
|
59
|
-
case
|
|
60
|
-
case
|
|
61
|
-
case
|
|
62
|
-
case
|
|
58
|
+
case 'TRADE_CREATE_DATETIME':
|
|
59
|
+
case 'TRADE_PAYMENT_DATETIME':
|
|
60
|
+
case 'TRADE_DELIVERY_DATETIME':
|
|
61
|
+
case 'TRADE_CLOSING_DATETIME':
|
|
62
|
+
case 'BS_SIGNING_TIME':
|
|
63
|
+
case 'BS_SEND_TIME':
|
|
64
|
+
case 'BS_TRADE_PAYMENT_TIME':
|
|
63
65
|
return new TradeDateTime(options);
|
|
64
|
-
case
|
|
66
|
+
case 'EXPRESS_LOGISTICS_SELECT':
|
|
65
67
|
return new Logistics(options);
|
|
66
|
-
case
|
|
68
|
+
case 'RETURN_LOGISTICS_SELECT':
|
|
67
69
|
return new ReturnLogistics(options);
|
|
68
|
-
case
|
|
69
|
-
case
|
|
70
|
-
case
|
|
71
|
-
case
|
|
70
|
+
case 'ACTUAL_PAYMENT':
|
|
71
|
+
case 'BS_NET_RECEIPTS':
|
|
72
|
+
case 'BS_DEPOSIT':
|
|
73
|
+
case 'BS_PACKAGE_WEIGHT':
|
|
72
74
|
return new ActualPayment(options);
|
|
73
|
-
case
|
|
75
|
+
case 'REMARK_INPUT':
|
|
74
76
|
return new ERemark(options);
|
|
75
|
-
case
|
|
77
|
+
case 'ITEM_SELECT':
|
|
76
78
|
return new ItemSelect(options);
|
|
77
|
-
case
|
|
79
|
+
case 'ITEM_ID':
|
|
78
80
|
return new ItemId(options);
|
|
79
|
-
case
|
|
81
|
+
case 'ITEM_ENCODE':
|
|
80
82
|
return new ItemEnCode(options);
|
|
81
|
-
case
|
|
83
|
+
case 'ALI_PAY_INPUT':
|
|
82
84
|
return new AliPay(options);
|
|
83
|
-
case
|
|
85
|
+
case 'ORDINARY_INVOICE':
|
|
84
86
|
return new Ordinary(options);
|
|
85
|
-
case
|
|
87
|
+
case 'ITEM_SELECT_THIRD':
|
|
86
88
|
return new ThirdItemSelect(options);
|
|
87
|
-
case
|
|
89
|
+
case 'ENTERPRISE_PAYMENT':
|
|
88
90
|
return new Payment(options);
|
|
89
|
-
case
|
|
91
|
+
case 'SYSTEM_ORDER_NO':
|
|
90
92
|
return new SystemOrderNo(options);
|
|
91
|
-
case
|
|
93
|
+
case 'LOGISTICS_INTERCEPTION':
|
|
92
94
|
return new LogisticsInterception(options);
|
|
93
|
-
case
|
|
95
|
+
case 'LOGISTICS_TRAJECTORY':
|
|
94
96
|
return new LogisticsTrajectory(options);
|
|
95
|
-
case
|
|
97
|
+
case 'WORK_ORDER_ID_INPUT':
|
|
96
98
|
return new WorkOrderId(options);
|
|
97
|
-
case
|
|
99
|
+
case 'FLOW_STATUS_SELECT':
|
|
98
100
|
return new FlowStatusSelect(options);
|
|
99
|
-
case
|
|
101
|
+
case 'FLOW_MARK_SELECT':
|
|
100
102
|
return new FlowMarkSelect(options);
|
|
101
|
-
case
|
|
102
|
-
return new FlowTag(options);
|
|
103
|
-
case "COMPLETED_DATETIME":
|
|
103
|
+
case 'COMPLETED_DATETIME':
|
|
104
104
|
return new CommonDataTime(options);
|
|
105
|
-
case
|
|
105
|
+
case 'CREATED_DATETIME':
|
|
106
106
|
return new CommonDataTime(options);
|
|
107
|
-
case
|
|
107
|
+
case 'UPDATE_DATETIME':
|
|
108
108
|
return new CommonDataTime(options);
|
|
109
|
-
case
|
|
109
|
+
case 'TEMPLATE_ID_INPUT':
|
|
110
110
|
return new TemplateSelect(options);
|
|
111
|
-
case
|
|
112
|
-
case
|
|
111
|
+
case 'JST_LOGISTICS':
|
|
112
|
+
case 'REISSUE_LOGISTICS':
|
|
113
113
|
return new JstLogistics(options);
|
|
114
|
-
case
|
|
114
|
+
case 'JST_ITEM_SELECT_THIRD':
|
|
115
115
|
return new JstItemSelect(options);
|
|
116
|
-
case
|
|
116
|
+
case 'JST_SUPPLY':
|
|
117
117
|
return new JstSupply(options);
|
|
118
|
-
case
|
|
119
|
-
case
|
|
118
|
+
case 'BS_SYSTEM_ORDER':
|
|
119
|
+
case 'WLN_SYSTEM_ORDER':
|
|
120
120
|
return new BsSystemOrder(options);
|
|
121
|
-
case
|
|
122
|
-
case
|
|
123
|
-
case
|
|
121
|
+
case 'JST_SEND_GOOD':
|
|
122
|
+
case 'BS_SEND_GOOD':
|
|
123
|
+
case 'WLN_SEND_GOOD':
|
|
124
124
|
return new JstSendGood(options);
|
|
125
|
-
case
|
|
126
|
-
return new
|
|
127
|
-
case
|
|
125
|
+
case 'BS_POSTING':
|
|
126
|
+
return new BasicPosting(options);
|
|
127
|
+
case 'BS_GOODS':
|
|
128
128
|
return new BsGoods(options);
|
|
129
|
-
case
|
|
129
|
+
case 'BS_EXCHANGE_GOODS':
|
|
130
130
|
return new BsExchange(options);
|
|
131
|
-
case
|
|
131
|
+
case 'BS_REISSUE_GOODS':
|
|
132
132
|
return new BsReissue(options);
|
|
133
|
-
case
|
|
133
|
+
case 'BS_RETURN_GOODS':
|
|
134
134
|
return new BsReturn(options);
|
|
135
|
-
|
|
136
|
-
case
|
|
137
|
-
case
|
|
138
|
-
case
|
|
135
|
+
case 'BS_DELIVERY_NO':
|
|
136
|
+
case 'RETURN_GOODS_TRADE_ID':
|
|
137
|
+
case 'REISSUE_TRADE_ID':
|
|
138
|
+
case 'EXCHANGE_TRADE_ID':
|
|
139
139
|
return new CommonSystemOrder(options);
|
|
140
|
-
case
|
|
141
|
-
case
|
|
140
|
+
case 'BS_LOGISTICS':
|
|
141
|
+
case 'WLN_LOGISTICS':
|
|
142
142
|
return new BsLogistics(options);
|
|
143
|
-
case
|
|
143
|
+
case 'FLOW_WORK_ORDER_ID_INPUT':
|
|
144
144
|
return new FlowWorkOrderId(options);
|
|
145
|
-
case
|
|
145
|
+
case 'OUTER_WORK_ORDER_ID_INPUT':
|
|
146
146
|
return new FlowWorkOrderId(options);
|
|
147
|
-
case
|
|
148
|
-
case
|
|
149
|
-
case
|
|
150
|
-
case
|
|
147
|
+
case 'REISSUE_STATUS':
|
|
148
|
+
case 'ADJUST_WORK_ORDER_STATUS':
|
|
149
|
+
case 'CREATE_STATUS':
|
|
150
|
+
case 'INVOICE_STATUS':
|
|
151
151
|
return new StatusSelect(options);
|
|
152
|
-
case
|
|
153
|
-
case
|
|
154
|
-
case
|
|
152
|
+
case 'RETURN_GOODS_STATUS':
|
|
153
|
+
case 'EXCHANGE_STATUS':
|
|
154
|
+
case 'WAREHOUSING_STATUS':
|
|
155
155
|
return new CommonMultiStatus(options);
|
|
156
|
-
case
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
case
|
|
156
|
+
// case 'REISSUE_TRADE_ID':
|
|
157
|
+
// case 'EXCHANGE_TRADE_ID':
|
|
158
|
+
// return new CommonTradeId(options)
|
|
159
|
+
case 'NUMERICAL_CALCULATION':
|
|
160
160
|
return new Calculation(options);
|
|
161
|
-
case
|
|
161
|
+
case 'NODE_DEAD_LINE_INPUT':
|
|
162
162
|
// 工单时效
|
|
163
163
|
return new NodeDeadLine(options);
|
|
164
|
-
case
|
|
164
|
+
case 'HANDLER_DEAD_LINE_INPUT':
|
|
165
165
|
// 处理人时效
|
|
166
166
|
return new HandlerDeadLine(options);
|
|
167
|
-
case
|
|
167
|
+
case 'NODE_STAY_DURATION_INPUT':
|
|
168
168
|
// 工单停留时长
|
|
169
169
|
return new NodeStayDuration(options);
|
|
170
|
-
case
|
|
170
|
+
case 'WLN_GOODS':
|
|
171
171
|
// 万里牛商品
|
|
172
172
|
return new WlnGoods(options);
|
|
173
173
|
default:
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -45,7 +45,6 @@ export { default as BsReturn } from "./components/BS/BsReturn";
|
|
|
45
45
|
export { default as BsLogistics } from "./components/BS/BsLogistics";
|
|
46
46
|
export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
|
|
47
47
|
export { default as FlowMarkSelect } from "./components/FlowMarkSelect";
|
|
48
|
-
export { default as FlowTag } from "./components/FlowTag";
|
|
49
48
|
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
50
49
|
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
51
50
|
export { default as LogisticsInterception } from "./components/LogisticsInterception";
|
|
@@ -65,7 +64,6 @@ export { default as NodeDeadLine } from "./components/NodeDeadLine";
|
|
|
65
64
|
export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
66
65
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
67
66
|
export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
68
|
-
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
69
67
|
export { factory } from "./factory";
|
|
70
68
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
71
69
|
export { default as SelectMark } from "./commonComponents/SelectMark";
|
package/dist/esm/index.js
CHANGED
|
@@ -45,7 +45,6 @@ export { default as BsReturn } from "./components/BS/BsReturn";
|
|
|
45
45
|
export { default as BsLogistics } from "./components/BS/BsLogistics";
|
|
46
46
|
export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
|
|
47
47
|
export { default as FlowMarkSelect } from "./components/FlowMarkSelect";
|
|
48
|
-
export { default as FlowTag } from "./components/FlowTag";
|
|
49
48
|
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
50
49
|
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
51
50
|
export { default as LogisticsInterception } from "./components/LogisticsInterception";
|
|
@@ -65,7 +64,6 @@ export { default as NodeDeadLine } from "./components/NodeDeadLine";
|
|
|
65
64
|
export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
66
65
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
67
66
|
export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
68
|
-
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
69
67
|
export { factory } from "./factory";
|
|
70
68
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
71
69
|
export { default as SelectMark } from "./commonComponents/SelectMark";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -50,7 +50,6 @@ export interface ComponentInterface {
|
|
|
50
50
|
dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
|
|
51
51
|
format?: "dateTime" | "date" | "time" | "cascader" | "shopInput";
|
|
52
52
|
options?: Array<any>;
|
|
53
|
-
templateId?: string;
|
|
54
53
|
/**
|
|
55
54
|
* @description 组件下标
|
|
56
55
|
* @deprecated 已弃用字段,后续版本不在使用
|
|
@@ -228,7 +227,7 @@ export interface ComponentInterface {
|
|
|
228
227
|
getComponentValue: (r: Record) => any;
|
|
229
228
|
formDataTransform?: (r: any) => any;
|
|
230
229
|
}
|
|
231
|
-
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader"
|
|
230
|
+
export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader">;
|
|
232
231
|
export declare type ColumnConfig = {
|
|
233
232
|
id: string;
|
|
234
233
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.13.0-
|
|
3
|
+
"version": "0.13.0-beta.10",
|
|
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.13.0-
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.13.0-
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.13.0-beta.10",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.13.0-beta.10"
|
|
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": "d529e86c1d5e033d9845c7d425b400e4dada045a"
|
|
44
44
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
3
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../../../../type';
|
|
4
|
-
declare class City implements ComponentInterface {
|
|
5
|
-
name: string;
|
|
6
|
-
id: string;
|
|
7
|
-
sortField: string;
|
|
8
|
-
type: string;
|
|
9
|
-
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
-
effects: ComponentInterface["effects"];
|
|
12
|
-
align: ALignType;
|
|
13
|
-
width: number;
|
|
14
|
-
isCombinationComponent: boolean;
|
|
15
|
-
formField: string;
|
|
16
|
-
canSort: boolean;
|
|
17
|
-
children: ComponentInterface[];
|
|
18
|
-
dataType: ComponentInterface['dataType'];
|
|
19
|
-
addressDateInstance: InstanceType<typeof AddressData>;
|
|
20
|
-
constructor(options: PickOption);
|
|
21
|
-
renderClient: (record: Record) => React.JSX.Element | null;
|
|
22
|
-
renderPc: (value: unknown, record: Record) => any;
|
|
23
|
-
renderLog: (r: Record) => string;
|
|
24
|
-
renderExport: (value?: string) => string;
|
|
25
|
-
getComponentValue: (r: Record) => any;
|
|
26
|
-
editRender: () => null;
|
|
27
|
-
filterConfig: () => never[];
|
|
28
|
-
}
|
|
29
|
-
export default City;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
-
import React from 'react';
|
|
9
|
-
import { BsAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
|
-
import ItemView from "../../../../../commonComponents/ItemView";
|
|
12
|
-
var City = /*#__PURE__*/_createClass(function City(options) {
|
|
13
|
-
var _this = this;
|
|
14
|
-
_classCallCheck(this, City);
|
|
15
|
-
_defineProperty(this, "name", void 0);
|
|
16
|
-
_defineProperty(this, "id", void 0);
|
|
17
|
-
_defineProperty(this, "sortField", void 0);
|
|
18
|
-
_defineProperty(this, "type", void 0);
|
|
19
|
-
_defineProperty(this, "rules", void 0);
|
|
20
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
21
|
-
_defineProperty(this, "effects", void 0);
|
|
22
|
-
_defineProperty(this, "align", void 0);
|
|
23
|
-
_defineProperty(this, "width", void 0);
|
|
24
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
-
_defineProperty(this, "formField", void 0);
|
|
26
|
-
_defineProperty(this, "canSort", void 0);
|
|
27
|
-
_defineProperty(this, "children", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
|
-
_defineProperty(this, "addressDateInstance", void 0);
|
|
30
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
31
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
32
|
-
id: _this.id,
|
|
33
|
-
label: _this.name,
|
|
34
|
-
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
35
|
-
}) : null;
|
|
36
|
-
});
|
|
37
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
38
|
-
var _record;
|
|
39
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
|
|
40
|
-
});
|
|
41
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
42
|
-
return _this.addressDateInstance.getNameByCode(r === null || r === void 0 ? void 0 : r[_this.id]);
|
|
43
|
-
});
|
|
44
|
-
_defineProperty(this, "renderExport", function (value) {
|
|
45
|
-
return value !== null && value !== void 0 ? value : '--';
|
|
46
|
-
});
|
|
47
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
48
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
49
|
-
});
|
|
50
|
-
_defineProperty(this, "editRender", function () {
|
|
51
|
-
return null;
|
|
52
|
-
});
|
|
53
|
-
_defineProperty(this, "filterConfig", function () {
|
|
54
|
-
return [];
|
|
55
|
-
});
|
|
56
|
-
this.name = '省';
|
|
57
|
-
this.id = "".concat(options.id, "_bsPostingCity");
|
|
58
|
-
this.sortField = "".concat(options.id, "_bsPostingCity");
|
|
59
|
-
this.formField = "".concat(options.id, "_bsPostingCity");
|
|
60
|
-
this.type = options.type;
|
|
61
|
-
this.isCombinationComponent = false;
|
|
62
|
-
this.canSort = false;
|
|
63
|
-
this.children = [];
|
|
64
|
-
this.align = 'left';
|
|
65
|
-
this.dataType = 'string';
|
|
66
|
-
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
67
|
-
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
68
|
-
this.rules = [];
|
|
69
|
-
this.width = 120; // TODO: 针对子组件,必须拥有width属性,否则就会出现多列展示问题
|
|
70
|
-
this.addressDateInstance = BsAddressData.getInstance();
|
|
71
|
-
});
|
|
72
|
-
export default City;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../../../../type';
|
|
3
|
-
declare class Detail implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
sortField: string;
|
|
7
|
-
type: string;
|
|
8
|
-
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
10
|
-
effects: ComponentInterface["effects"];
|
|
11
|
-
align: ALignType;
|
|
12
|
-
width: number;
|
|
13
|
-
isCombinationComponent: boolean;
|
|
14
|
-
formField: string;
|
|
15
|
-
canSort: boolean;
|
|
16
|
-
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface['dataType'];
|
|
18
|
-
constructor(options: PickOption);
|
|
19
|
-
renderClient: (record: Record) => React.JSX.Element | null;
|
|
20
|
-
renderPc: (value: unknown, record: Record) => any;
|
|
21
|
-
renderLog: (r: Record) => any;
|
|
22
|
-
renderExport: (value?: string) => string;
|
|
23
|
-
getComponentValue: (r: Record) => any;
|
|
24
|
-
editRender: () => null;
|
|
25
|
-
filterConfig: () => never[];
|
|
26
|
-
}
|
|
27
|
-
export default Detail;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
-
import React from 'react';
|
|
9
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
-
import ItemView from "../../../../../commonComponents/ItemView";
|
|
11
|
-
var Detail = /*#__PURE__*/_createClass(function Detail(options) {
|
|
12
|
-
var _this = this;
|
|
13
|
-
_classCallCheck(this, Detail);
|
|
14
|
-
_defineProperty(this, "name", void 0);
|
|
15
|
-
_defineProperty(this, "id", void 0);
|
|
16
|
-
_defineProperty(this, "sortField", void 0);
|
|
17
|
-
_defineProperty(this, "type", void 0);
|
|
18
|
-
_defineProperty(this, "rules", void 0);
|
|
19
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
20
|
-
_defineProperty(this, "effects", void 0);
|
|
21
|
-
_defineProperty(this, "align", void 0);
|
|
22
|
-
_defineProperty(this, "width", void 0);
|
|
23
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
-
_defineProperty(this, "formField", void 0);
|
|
25
|
-
_defineProperty(this, "canSort", void 0);
|
|
26
|
-
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "dataType", void 0);
|
|
28
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
29
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
|
-
id: _this.id,
|
|
31
|
-
label: _this.name,
|
|
32
|
-
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
33
|
-
}) : null;
|
|
34
|
-
});
|
|
35
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
36
|
-
var _record;
|
|
37
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
|
|
38
|
-
});
|
|
39
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
40
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
41
|
-
});
|
|
42
|
-
_defineProperty(this, "renderExport", function (value) {
|
|
43
|
-
return value !== null && value !== void 0 ? value : '--';
|
|
44
|
-
});
|
|
45
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
46
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
47
|
-
});
|
|
48
|
-
_defineProperty(this, "editRender", function () {
|
|
49
|
-
return null;
|
|
50
|
-
});
|
|
51
|
-
_defineProperty(this, "filterConfig", function () {
|
|
52
|
-
return [];
|
|
53
|
-
});
|
|
54
|
-
this.name = '详细地址';
|
|
55
|
-
this.id = "".concat(options.id, "_bsPostingDetail");
|
|
56
|
-
this.sortField = "".concat(options.id, "_bsPostingDetail");
|
|
57
|
-
this.formField = "".concat(options.id, "_bsPostingDetail");
|
|
58
|
-
this.type = options.type;
|
|
59
|
-
this.isCombinationComponent = false;
|
|
60
|
-
this.canSort = false;
|
|
61
|
-
this.children = [];
|
|
62
|
-
this.align = 'left';
|
|
63
|
-
this.dataType = 'string';
|
|
64
|
-
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
65
|
-
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
66
|
-
this.rules = [];
|
|
67
|
-
this.width = 200; // TODO: 针对子组件,必须拥有width属性,否则就会出现多列展示问题
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
export default Detail;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
3
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../../../../type';
|
|
4
|
-
declare class District implements ComponentInterface {
|
|
5
|
-
name: string;
|
|
6
|
-
id: string;
|
|
7
|
-
sortField: string;
|
|
8
|
-
type: string;
|
|
9
|
-
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
-
effects: ComponentInterface["effects"];
|
|
12
|
-
align: ALignType;
|
|
13
|
-
width: number;
|
|
14
|
-
isCombinationComponent: boolean;
|
|
15
|
-
formField: string;
|
|
16
|
-
canSort: boolean;
|
|
17
|
-
children: ComponentInterface[];
|
|
18
|
-
dataType: ComponentInterface['dataType'];
|
|
19
|
-
addressDateInstance: InstanceType<typeof AddressData>;
|
|
20
|
-
constructor(options: PickOption);
|
|
21
|
-
renderClient: (record: Record) => React.JSX.Element | null;
|
|
22
|
-
renderPc: (value: unknown, record: Record) => any;
|
|
23
|
-
renderLog: (r: Record) => string;
|
|
24
|
-
renderExport: (value?: string) => string;
|
|
25
|
-
getComponentValue: (r: Record) => any;
|
|
26
|
-
editRender: () => null;
|
|
27
|
-
filterConfig: () => never[];
|
|
28
|
-
}
|
|
29
|
-
export default District;
|