@kmkf-fe-packages/services-components 0.7.12-alpha.9 → 0.7.14-alpha.2
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/ActualPayment/index.d.ts +3 -1
- package/dist/esm/components/ActualPayment/index.js +6 -1
- package/dist/esm/components/Address/index.d.ts +3 -1
- package/dist/esm/components/Address/index.js +6 -1
- package/dist/esm/components/Alipay/index.d.ts +3 -1
- package/dist/esm/components/Alipay/index.js +7 -2
- package/dist/esm/components/AlipayAccount/index.d.ts +3 -1
- package/dist/esm/components/AlipayAccount/index.js +6 -1
- package/dist/esm/components/AlipayName/index.d.ts +3 -1
- package/dist/esm/components/AlipayName/index.js +6 -1
- package/dist/esm/components/BuyerNick/index.d.ts +3 -1
- package/dist/esm/components/BuyerNick/index.js +7 -2
- package/dist/esm/components/Cascader/index.d.ts +3 -1
- package/dist/esm/components/Cascader/index.js +6 -1
- package/dist/esm/components/Checkbox/index.d.ts +5 -1
- package/dist/esm/components/Checkbox/index.js +13 -2
- package/dist/esm/components/CommonDataTime/index.d.ts +3 -0
- package/dist/esm/components/CommonDataTime/index.js +6 -0
- package/dist/esm/components/CompletedUser/index.d.ts +3 -0
- package/dist/esm/components/CompletedUser/index.js +8 -1
- package/dist/esm/components/DataTime/index.d.ts +4 -1
- package/dist/esm/components/DataTime/index.js +13 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +3 -1
- package/dist/esm/components/EItemEnCode/index.js +6 -1
- package/dist/esm/components/EItemId/index.d.ts +3 -1
- package/dist/esm/components/EItemId/index.js +6 -1
- package/dist/esm/components/EItemSelect/index.d.ts +3 -1
- package/dist/esm/components/EItemSelect/index.js +6 -1
- package/dist/esm/components/ErpTradeId/index.d.ts +3 -1
- package/dist/esm/components/ErpTradeId/index.js +6 -1
- package/dist/esm/components/Express/index.d.ts +4 -1
- package/dist/esm/components/Express/index.js +8 -1
- package/dist/esm/components/ExpressCode/index.d.ts +3 -1
- package/dist/esm/components/ExpressCode/index.js +6 -1
- package/dist/esm/components/FlowStatusSelect/index.d.ts +4 -1
- package/dist/esm/components/FlowStatusSelect/index.js +23 -7
- package/dist/esm/components/GetFormItem/index.d.ts +2 -1
- package/dist/esm/components/GetFormItem/index.js +5 -2
- package/dist/esm/components/Grade/index.d.ts +3 -1
- package/dist/esm/components/Grade/index.js +6 -1
- package/dist/esm/components/Handler/index.d.ts +3 -0
- package/dist/esm/components/Handler/index.js +8 -1
- package/dist/esm/components/Input/index.d.ts +3 -1
- package/dist/esm/components/Input/index.js +8 -2
- package/dist/esm/components/JstItemSelect/index.d.ts +3 -1
- package/dist/esm/components/JstItemSelect/index.js +6 -1
- package/dist/esm/components/JstLogistics/index.d.ts +3 -1
- package/dist/esm/components/JstLogistics/index.js +6 -1
- package/dist/esm/components/JstSendGood/index.d.ts +3 -1
- package/dist/esm/components/JstSendGood/index.js +6 -1
- package/dist/esm/components/JstSupply/index.d.ts +3 -1
- package/dist/esm/components/JstSupply/index.js +6 -1
- package/dist/esm/components/Logistics/index.d.ts +3 -1
- package/dist/esm/components/Logistics/index.js +7 -2
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +3 -1
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +6 -1
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +6 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +6 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +3 -1
- package/dist/esm/components/LogisticsInterception/index.js +6 -1
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +6 -0
- package/dist/esm/components/MultSelect/index.d.ts +4 -1
- package/dist/esm/components/MultSelect/index.js +10 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +6 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +6 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +4 -6
- package/dist/esm/components/Ordinary/OrdinarySerial.js +5 -8
- package/dist/esm/components/Ordinary/index.d.ts +4 -6
- package/dist/esm/components/Ordinary/index.js +6 -9
- package/dist/esm/components/Payment/AlipayNick.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayNick.js +6 -1
- package/dist/esm/components/Payment/AlipayNo.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayNo.js +6 -1
- package/dist/esm/components/Payment/AlipayTime.d.ts +4 -1
- package/dist/esm/components/Payment/AlipayTime.js +8 -1
- package/dist/esm/components/Payment/BuyerNick.d.ts +3 -1
- package/dist/esm/components/Payment/BuyerNick.js +6 -1
- package/dist/esm/components/Payment/PaymentAmount.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentAmount.js +6 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +3 -0
- package/dist/esm/components/Payment/PaymentStatus.js +6 -0
- package/dist/esm/components/Payment/PaymentTid.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentTid.js +6 -1
- package/dist/esm/components/Payment/index.d.ts +3 -1
- package/dist/esm/components/Payment/index.js +7 -2
- package/dist/esm/components/Picture/index.d.ts +3 -1
- package/dist/esm/components/Picture/index.js +6 -1
- package/dist/esm/components/PlatForm/index.d.ts +3 -0
- package/dist/esm/components/PlatForm/index.js +6 -0
- package/dist/esm/components/Radio/index.d.ts +5 -1
- package/dist/esm/components/Radio/index.js +13 -2
- package/dist/esm/components/Rate/index.d.ts +3 -1
- package/dist/esm/components/Rate/index.js +6 -1
- package/dist/esm/components/ReceiverAddress/index.d.ts +3 -1
- package/dist/esm/components/ReceiverAddress/index.js +6 -1
- package/dist/esm/components/ReceiverMobile/index.d.ts +3 -1
- package/dist/esm/components/ReceiverMobile/index.js +7 -2
- package/dist/esm/components/ReceiverName/index.d.ts +3 -1
- package/dist/esm/components/ReceiverName/index.js +6 -1
- package/dist/esm/components/Remark/index.d.ts +3 -1
- package/dist/esm/components/Remark/index.js +6 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +4 -6
- package/dist/esm/components/ReturnLogistics/index.js +7 -9
- package/dist/esm/components/Select/index.d.ts +4 -1
- package/dist/esm/components/Select/index.js +10 -2
- package/dist/esm/components/ShopInput/index.d.ts +3 -0
- package/dist/esm/components/ShopInput/index.js +8 -1
- package/dist/esm/components/ShopName/index.d.ts +3 -1
- package/dist/esm/components/ShopName/index.js +6 -1
- package/dist/esm/components/Submitter/index.d.ts +3 -0
- package/dist/esm/components/Submitter/index.js +8 -1
- package/dist/esm/components/SystemOrderNo/index.d.ts +3 -1
- package/dist/esm/components/SystemOrderNo/index.js +6 -1
- package/dist/esm/components/TemplateSelect/index.d.ts +3 -0
- package/dist/esm/components/TemplateSelect/index.js +8 -1
- package/dist/esm/components/TextArea/index.d.ts +3 -1
- package/dist/esm/components/TextArea/index.js +6 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -1
- package/dist/esm/components/ThirdItemSelect/index.js +6 -1
- package/dist/esm/components/TradeDateTime/index.d.ts +5 -6
- package/dist/esm/components/TradeDateTime/index.js +8 -9
- package/dist/esm/components/TradeId/index.d.ts +4 -6
- package/dist/esm/components/TradeId/index.js +8 -11
- package/dist/esm/components/WorkOrderId/index.d.ts +3 -1
- package/dist/esm/components/WorkOrderId/index.js +6 -1
- package/dist/esm/type.d.ts +6 -0
- package/package.json +4 -4
|
@@ -7,16 +7,18 @@ declare class ActualPayment implements ComponentInterface {
|
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
|
+
formField: string;
|
|
10
11
|
canSort: boolean;
|
|
11
12
|
children: ComponentInterface[];
|
|
12
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
13
15
|
constructor(options: PickOption);
|
|
14
16
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
15
17
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
16
18
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
17
19
|
getComponentValue: (r: Record) => any;
|
|
18
20
|
renderExport: (value: unknown, record: Record) => any;
|
|
19
|
-
editRender: () => React.JSX.Element;
|
|
21
|
+
editRender: (p: any) => React.JSX.Element;
|
|
20
22
|
filterConfig: (item: ColumnConfig) => {
|
|
21
23
|
searchDefaultConditions: "between";
|
|
22
24
|
type: string;
|
|
@@ -24,9 +24,11 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
24
24
|
_defineProperty(this, "type", void 0);
|
|
25
25
|
_defineProperty(this, "rules", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
27
28
|
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
29
30
|
_defineProperty(this, "componentConfig", void 0);
|
|
31
|
+
_defineProperty(this, "dataType", void 0);
|
|
30
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
31
33
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
32
34
|
id: _this.id,
|
|
@@ -49,12 +51,13 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
49
51
|
var _record2;
|
|
50
52
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_actualPayment")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
51
53
|
});
|
|
52
|
-
_defineProperty(this, "editRender", function () {
|
|
54
|
+
_defineProperty(this, "editRender", function (p) {
|
|
53
55
|
var _this$componentConfig, _this$componentConfig2;
|
|
54
56
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
55
57
|
title: _this.name,
|
|
56
58
|
name: _this.id,
|
|
57
59
|
rules: _this.rules,
|
|
60
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
58
61
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
59
62
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
60
63
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -133,8 +136,10 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
133
136
|
});
|
|
134
137
|
this.id = options.id;
|
|
135
138
|
this.sortField = "".concat(options.id, "_actualPayment");
|
|
139
|
+
this.formField = "".concat(options.id, "_actualPayment");
|
|
136
140
|
this.name = options.name;
|
|
137
141
|
this.type = options.type;
|
|
142
|
+
this.dataType = 'number';
|
|
138
143
|
this.isCombinationComponent = false;
|
|
139
144
|
this.canSort = true;
|
|
140
145
|
this.children = [];
|
|
@@ -9,10 +9,12 @@ declare class Address implements ComponentInterface {
|
|
|
9
9
|
type: string;
|
|
10
10
|
rules: any[];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
12
13
|
canSort: boolean;
|
|
13
14
|
children: ComponentInterface[];
|
|
14
15
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
16
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
16
18
|
constructor(options: PickOption);
|
|
17
19
|
/**
|
|
18
20
|
* 通过值计算展示内容
|
|
@@ -26,7 +28,7 @@ declare class Address implements ComponentInterface {
|
|
|
26
28
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
27
29
|
getComponentValue: (r: Record) => any[];
|
|
28
30
|
renderExport: (value: any, record: any) => string;
|
|
29
|
-
editRender: () => React.JSX.Element;
|
|
31
|
+
editRender: (p: any) => React.JSX.Element;
|
|
30
32
|
filterConfig: (item: ColumnConfig) => {
|
|
31
33
|
searchDefaultConditions: "eq";
|
|
32
34
|
type: string;
|
|
@@ -23,10 +23,12 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
23
23
|
_defineProperty(this, "type", void 0);
|
|
24
24
|
_defineProperty(this, "rules", void 0);
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
26
27
|
_defineProperty(this, "canSort", void 0);
|
|
27
28
|
_defineProperty(this, "children", void 0);
|
|
28
29
|
_defineProperty(this, "componentConfig", void 0);
|
|
29
30
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
31
|
+
_defineProperty(this, "dataType", void 0);
|
|
30
32
|
_defineProperty(this, "getValue", function (value) {
|
|
31
33
|
var _value$map;
|
|
32
34
|
return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (suffix) {
|
|
@@ -76,12 +78,13 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
76
78
|
return _this.addressDateInstance.getNameByCode(suffix || '');
|
|
77
79
|
}).join('');
|
|
78
80
|
});
|
|
79
|
-
_defineProperty(this, "editRender", function () {
|
|
81
|
+
_defineProperty(this, "editRender", function (p) {
|
|
80
82
|
var _this$componentConfig, _this$componentConfig2;
|
|
81
83
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
82
84
|
title: _this.name,
|
|
83
85
|
name: _this.id,
|
|
84
86
|
rules: _this.rules,
|
|
87
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
85
88
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
86
89
|
component: /*#__PURE__*/React.createElement(ApaasAddress, _this.componentConfig)
|
|
87
90
|
});
|
|
@@ -118,7 +121,9 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
118
121
|
this.name = options.name;
|
|
119
122
|
this.id = options.id;
|
|
120
123
|
this.sortField = "".concat(options.id, "_basicDistrict");
|
|
124
|
+
this.formField = "".concat(options.id, "_basicDistrict");
|
|
121
125
|
this.type = options.type;
|
|
126
|
+
this.dataType = 'object';
|
|
122
127
|
this.isCombinationComponent = false;
|
|
123
128
|
this.canSort = true;
|
|
124
129
|
this.children = [];
|
|
@@ -12,8 +12,10 @@ declare class Alipay implements ComponentInterface {
|
|
|
12
12
|
alipayAccount: EAlipayAccount;
|
|
13
13
|
alipayName: EAlipayName;
|
|
14
14
|
isCombinationComponent: boolean;
|
|
15
|
+
formField: string;
|
|
15
16
|
canSort: boolean;
|
|
16
17
|
children: ComponentInterface[];
|
|
18
|
+
dataType: ComponentInterface['dataType'];
|
|
17
19
|
constructor(options: PickOption);
|
|
18
20
|
renderClient: (record: Record) => React.JSX.Element;
|
|
19
21
|
renderPc: () => null;
|
|
@@ -23,7 +25,7 @@ declare class Alipay implements ComponentInterface {
|
|
|
23
25
|
user: any;
|
|
24
26
|
};
|
|
25
27
|
renderExport: () => null;
|
|
26
|
-
editRender: (
|
|
28
|
+
editRender: (p: any) => React.JSX.Element;
|
|
27
29
|
filterConfig: (item: ColumnConfig) => {
|
|
28
30
|
searchDefaultConditions: "eq";
|
|
29
31
|
type: string;
|
|
@@ -26,8 +26,10 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
26
26
|
_defineProperty(this, "alipayAccount", void 0);
|
|
27
27
|
_defineProperty(this, "alipayName", void 0);
|
|
28
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "formField", void 0);
|
|
29
30
|
_defineProperty(this, "canSort", void 0);
|
|
30
31
|
_defineProperty(this, "children", void 0);
|
|
32
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
33
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
34
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayName.renderClient(record), _this.alipayAccount.renderClient(record));
|
|
33
35
|
});
|
|
@@ -46,15 +48,16 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
46
48
|
_defineProperty(this, "renderExport", function () {
|
|
47
49
|
return null;
|
|
48
50
|
});
|
|
49
|
-
_defineProperty(this, "editRender", function (
|
|
51
|
+
_defineProperty(this, "editRender", function (p) {
|
|
50
52
|
var _this$componentConfig, _this$componentConfig2;
|
|
51
53
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
52
54
|
title: _this.name,
|
|
53
55
|
name: _this.id,
|
|
54
56
|
rules: _this.rules,
|
|
57
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
55
58
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
56
59
|
component: /*#__PURE__*/React.createElement(AliPay, _extends({}, _this.componentConfig, {
|
|
57
|
-
onBlur:
|
|
60
|
+
onBlur: p === null || p === void 0 ? void 0 : p.onBlur
|
|
58
61
|
}))
|
|
59
62
|
});
|
|
60
63
|
});
|
|
@@ -64,12 +67,14 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
64
67
|
this.name = options.name;
|
|
65
68
|
this.id = options.id;
|
|
66
69
|
this.sortField = options.id;
|
|
70
|
+
this.formField = options.id;
|
|
67
71
|
this.type = options.type;
|
|
68
72
|
this.isCombinationComponent = true;
|
|
69
73
|
this.canSort = false;
|
|
70
74
|
this.componentConfig = options.componentConfig;
|
|
71
75
|
this.alipayAccount = new EAlipayAccount(_objectSpread({}, options));
|
|
72
76
|
this.alipayName = new EAlipayName(_objectSpread({}, options));
|
|
77
|
+
this.dataType = 'object';
|
|
73
78
|
this.children = [this.alipayName, this.alipayAccount];
|
|
74
79
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
75
80
|
validator: function validator(_, value) {
|
|
@@ -11,15 +11,17 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
11
11
|
align: ALignType;
|
|
12
12
|
width: number;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
14
15
|
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
16
18
|
constructor(options: PickOption);
|
|
17
19
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
18
20
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
19
21
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
22
|
getComponentValue: (r: Record) => any;
|
|
21
23
|
renderExport: (value?: string) => string;
|
|
22
|
-
editRender: () => React.JSX.Element;
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
25
|
filterConfig: (item: ColumnConfig) => {
|
|
24
26
|
searchDefaultConditions: "eq";
|
|
25
27
|
type: string;
|
|
@@ -27,8 +27,10 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
27
27
|
_defineProperty(this, "align", void 0);
|
|
28
28
|
_defineProperty(this, "width", void 0);
|
|
29
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "formField", void 0);
|
|
30
31
|
_defineProperty(this, "canSort", void 0);
|
|
31
32
|
_defineProperty(this, "children", void 0);
|
|
33
|
+
_defineProperty(this, "dataType", void 0);
|
|
32
34
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
35
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
36
|
id: _this.id,
|
|
@@ -56,12 +58,13 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
56
58
|
_defineProperty(this, "renderExport", function (value) {
|
|
57
59
|
return value !== null && value !== void 0 ? value : '--';
|
|
58
60
|
});
|
|
59
|
-
_defineProperty(this, "editRender", function () {
|
|
61
|
+
_defineProperty(this, "editRender", function (p) {
|
|
60
62
|
var _this$componentConfig, _this$componentConfig2;
|
|
61
63
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
62
64
|
title: _this.name,
|
|
63
65
|
name: _this.id,
|
|
64
66
|
rules: _this.rules,
|
|
67
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
65
68
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
66
69
|
component: /*#__PURE__*/React.createElement(AlipayAccount, _this.componentConfig)
|
|
67
70
|
});
|
|
@@ -83,11 +86,13 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
83
86
|
this.name = '支付宝账号';
|
|
84
87
|
this.id = "".concat(options.id, "_alipayAccount");
|
|
85
88
|
this.sortField = "".concat(options.id, "_alipayAccount");
|
|
89
|
+
this.formField = "".concat(options.id, "_alipayAccount");
|
|
86
90
|
this.type = options.type;
|
|
87
91
|
this.isCombinationComponent = false;
|
|
88
92
|
this.canSort = true;
|
|
89
93
|
this.children = [];
|
|
90
94
|
this.align = 'left';
|
|
95
|
+
this.dataType = 'string';
|
|
91
96
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
92
97
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
93
98
|
this.rules = [];
|
|
@@ -9,17 +9,19 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
effects: ComponentInterface["effects"];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
12
13
|
canSort: boolean;
|
|
13
14
|
children: ComponentInterface[];
|
|
14
15
|
align: ALignType;
|
|
15
16
|
width: number;
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
16
18
|
constructor(options: PickOption);
|
|
17
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
20
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
19
21
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
22
|
getComponentValue: (r: Record) => any;
|
|
21
23
|
renderExport: (value?: string) => string;
|
|
22
|
-
editRender: () => React.JSX.Element;
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
25
|
filterConfig: (item: ColumnConfig) => {
|
|
24
26
|
searchDefaultConditions: "eq";
|
|
25
27
|
type: string;
|
|
@@ -25,10 +25,12 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
25
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
26
|
_defineProperty(this, "effects", void 0);
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "formField", void 0);
|
|
28
29
|
_defineProperty(this, "canSort", void 0);
|
|
29
30
|
_defineProperty(this, "children", void 0);
|
|
30
31
|
_defineProperty(this, "align", void 0);
|
|
31
32
|
_defineProperty(this, "width", void 0);
|
|
33
|
+
_defineProperty(this, "dataType", void 0);
|
|
32
34
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
35
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
36
|
id: _this.id,
|
|
@@ -56,12 +58,13 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
56
58
|
_defineProperty(this, "renderExport", function (value) {
|
|
57
59
|
return value !== null && value !== void 0 ? value : '--';
|
|
58
60
|
});
|
|
59
|
-
_defineProperty(this, "editRender", function () {
|
|
61
|
+
_defineProperty(this, "editRender", function (p) {
|
|
60
62
|
var _this$componentConfig, _this$componentConfig2;
|
|
61
63
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
62
64
|
title: _this.name,
|
|
63
65
|
name: _this.id,
|
|
64
66
|
rules: _this.rules,
|
|
67
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
65
68
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
66
69
|
component: /*#__PURE__*/React.createElement(AlipayName, _this.componentConfig)
|
|
67
70
|
});
|
|
@@ -83,11 +86,13 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
83
86
|
this.name = '支付宝名称';
|
|
84
87
|
this.id = "".concat(options.id, "_alipayName");
|
|
85
88
|
this.sortField = "".concat(options.id, "_alipayName");
|
|
89
|
+
this.formField = "".concat(options.id, "_alipayName");
|
|
86
90
|
this.type = options.type;
|
|
87
91
|
this.isCombinationComponent = false;
|
|
88
92
|
this.canSort = true;
|
|
89
93
|
this.children = [];
|
|
90
94
|
this.align = 'left';
|
|
95
|
+
this.dataType = 'string';
|
|
91
96
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
92
97
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
93
98
|
this.rules = [];
|
|
@@ -9,8 +9,10 @@ declare class EBuyerNick implements ComponentInterface {
|
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
effects: ComponentInterface["effects"];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
12
13
|
canSort: boolean;
|
|
13
14
|
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
14
16
|
constructor(options: PickOption);
|
|
15
17
|
renderTaoBaoWangWang: (record: any, params: any) => React.JSX.Element;
|
|
16
18
|
renderClient: (record: any, params: any) => React.JSX.Element | null;
|
|
@@ -21,7 +23,7 @@ declare class EBuyerNick implements ComponentInterface {
|
|
|
21
23
|
buyerOpenUid: any;
|
|
22
24
|
};
|
|
23
25
|
renderExport: (value: any, record: any) => any;
|
|
24
|
-
editRender: (
|
|
26
|
+
editRender: (p: any) => React.JSX.Element;
|
|
25
27
|
filterConfig: (item: ColumnConfig) => {
|
|
26
28
|
searchDefaultConditions: "like";
|
|
27
29
|
type: string;
|
|
@@ -27,8 +27,10 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
27
27
|
_defineProperty(this, "componentConfig", void 0);
|
|
28
28
|
_defineProperty(this, "effects", void 0);
|
|
29
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "formField", void 0);
|
|
30
31
|
_defineProperty(this, "canSort", void 0);
|
|
31
32
|
_defineProperty(this, "children", void 0);
|
|
33
|
+
_defineProperty(this, "dataType", void 0);
|
|
32
34
|
_defineProperty(this, "renderTaoBaoWangWang", function (record, params) {
|
|
33
35
|
var _record$_this$id3;
|
|
34
36
|
return /*#__PURE__*/React.createElement("span", {
|
|
@@ -79,17 +81,18 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
79
81
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
80
82
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerNick")];
|
|
81
83
|
});
|
|
82
|
-
_defineProperty(this, "editRender", function (
|
|
84
|
+
_defineProperty(this, "editRender", function (p) {
|
|
83
85
|
var _this$componentConfig, _this$componentConfig2, _this$effects3, _this$effects4;
|
|
84
86
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
85
87
|
title: _this.name,
|
|
86
88
|
name: _this.id,
|
|
87
89
|
rules: _this.rules,
|
|
88
90
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
91
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
89
92
|
component: /*#__PURE__*/React.createElement(BuyerNick, _extends({}, _this.componentConfig, {
|
|
90
93
|
shopId: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopId,
|
|
91
94
|
shopList: (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList,
|
|
92
|
-
onBlur:
|
|
95
|
+
onBlur: p === null || p === void 0 ? void 0 : p.onBlur
|
|
93
96
|
}))
|
|
94
97
|
});
|
|
95
98
|
});
|
|
@@ -113,9 +116,11 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
113
116
|
this.id = options.id;
|
|
114
117
|
this.type = options.type;
|
|
115
118
|
this.sortField = "".concat(options.id, "_buyerNick");
|
|
119
|
+
this.formField = "".concat(options.id, "_buyerNick");
|
|
116
120
|
this.isCombinationComponent = false;
|
|
117
121
|
this.canSort = true;
|
|
118
122
|
this.children = [];
|
|
123
|
+
this.dataType = 'string';
|
|
119
124
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
120
125
|
validator: function validator(_, value) {
|
|
121
126
|
if (!(value !== null && value !== void 0 && value.buyerNick)) {
|
|
@@ -8,8 +8,10 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
8
8
|
rules: any[];
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
formField: string;
|
|
11
12
|
canSort: boolean;
|
|
12
13
|
children: ComponentInterface[];
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
13
15
|
constructor(options: PickOption);
|
|
14
16
|
/**
|
|
15
17
|
* 通过值计算展示内容
|
|
@@ -22,7 +24,7 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
22
24
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
23
25
|
getComponentValue: (r: Record) => any;
|
|
24
26
|
renderExport: (value: any, record: Record) => string;
|
|
25
|
-
editRender: () => React.JSX.Element;
|
|
27
|
+
editRender: (p: any) => React.JSX.Element;
|
|
26
28
|
filterConfig: (item: ColumnConfig) => {
|
|
27
29
|
searchDefaultConditions: "eq";
|
|
28
30
|
type: string;
|
|
@@ -24,8 +24,10 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
24
24
|
_defineProperty(this, "rules", void 0);
|
|
25
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
27
28
|
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
29
31
|
_defineProperty(this, "getValue", function (value) {
|
|
30
32
|
var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
|
|
31
33
|
return (_findLabelBySelectVal = findLabelBySelectValue(value, (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (i) {
|
|
@@ -68,12 +70,13 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
68
70
|
return i.label;
|
|
69
71
|
})) === null || _findLabelBySelectVal6 === void 0 ? void 0 : _findLabelBySelectVal6.join(',');
|
|
70
72
|
});
|
|
71
|
-
_defineProperty(this, "editRender", function () {
|
|
73
|
+
_defineProperty(this, "editRender", function (p) {
|
|
72
74
|
var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6;
|
|
73
75
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
74
76
|
title: _this.name,
|
|
75
77
|
name: _this.id,
|
|
76
78
|
rules: _this.rules,
|
|
79
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
77
80
|
required: (_this$componentConfig4 = (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.required) !== null && _this$componentConfig4 !== void 0 ? _this$componentConfig4 : false,
|
|
78
81
|
component: /*#__PURE__*/React.createElement(Cascader, _extends({}, _this.componentConfig, {
|
|
79
82
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
@@ -129,12 +132,14 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
129
132
|
this.name = _options.name;
|
|
130
133
|
this.id = _options.id;
|
|
131
134
|
this.sortField = "".concat(_options.id, "_multSelect");
|
|
135
|
+
this.formField = "".concat(_options.id, "_multSelect");
|
|
132
136
|
this.type = _options.type;
|
|
133
137
|
this.componentConfig = _options.componentConfig;
|
|
134
138
|
this.rules = [];
|
|
135
139
|
this.children = [];
|
|
136
140
|
this.isCombinationComponent = false;
|
|
137
141
|
this.canSort = true;
|
|
142
|
+
this.dataType = 'object'; // FIXME: 多级下拉这种不知道要如何去做条件判断
|
|
138
143
|
}
|
|
139
144
|
|
|
140
145
|
/**
|
|
@@ -12,8 +12,11 @@ declare class BasicCheckbox implements ComponentInterface {
|
|
|
12
12
|
rules: any[];
|
|
13
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
14
|
isCombinationComponent: boolean;
|
|
15
|
+
formField: string;
|
|
15
16
|
canSort: boolean;
|
|
16
17
|
children: ComponentInterface[];
|
|
18
|
+
dataType: ComponentInterface['dataType'];
|
|
19
|
+
options: ComponentInterface['options'];
|
|
17
20
|
constructor(options: PickOption);
|
|
18
21
|
getValue: (value: Value) => string | null | undefined;
|
|
19
22
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -24,7 +27,7 @@ declare class BasicCheckbox implements ComponentInterface {
|
|
|
24
27
|
};
|
|
25
28
|
renderExport: (value: any, record: Record) => string;
|
|
26
29
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
27
|
-
editRender: () => React.JSX.Element;
|
|
30
|
+
editRender: (p: any) => React.JSX.Element;
|
|
28
31
|
filterConfig: (item: ColumnConfig) => {
|
|
29
32
|
searchDefaultConditions: "in";
|
|
30
33
|
type: string;
|
|
@@ -36,5 +39,6 @@ declare class BasicCheckbox implements ComponentInterface {
|
|
|
36
39
|
};
|
|
37
40
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
41
|
};
|
|
42
|
+
formDataTransform: (v: Value) => string[] | undefined;
|
|
39
43
|
}
|
|
40
44
|
export default BasicCheckbox;
|
|
@@ -14,7 +14,8 @@ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
|
14
14
|
import { SYMBOL } from "../../constant";
|
|
15
15
|
var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
16
16
|
var _this = this,
|
|
17
|
-
_options$componentCon
|
|
17
|
+
_options$componentCon,
|
|
18
|
+
_this$componentConfig3;
|
|
18
19
|
_classCallCheck(this, BasicCheckbox);
|
|
19
20
|
_defineProperty(this, "name", void 0);
|
|
20
21
|
_defineProperty(this, "id", void 0);
|
|
@@ -23,8 +24,11 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
23
24
|
_defineProperty(this, "rules", void 0);
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
26
28
|
_defineProperty(this, "canSort", void 0);
|
|
27
29
|
_defineProperty(this, "children", void 0);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
|
+
_defineProperty(this, "options", void 0);
|
|
28
32
|
_defineProperty(this, "getValue", function (value) {
|
|
29
33
|
var _value$value, _value$value2, _value$value3;
|
|
30
34
|
if ((value === null || value === void 0 ? void 0 : (_value$value = value.value) === null || _value$value === void 0 ? void 0 : _value$value.length) === 0 && isNull(value === null || value === void 0 ? void 0 : value.other)) return null;
|
|
@@ -75,12 +79,13 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
75
79
|
value: _this.getValue(record === null || record === void 0 ? void 0 : record[_this.id]) || ''
|
|
76
80
|
}) : null;
|
|
77
81
|
});
|
|
78
|
-
_defineProperty(this, "editRender", function () {
|
|
82
|
+
_defineProperty(this, "editRender", function (p) {
|
|
79
83
|
var _this$componentConfig, _this$componentConfig2;
|
|
80
84
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
81
85
|
title: _this.name,
|
|
82
86
|
name: _this.id,
|
|
83
87
|
rules: _this.rules,
|
|
88
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
84
89
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
85
90
|
component: /*#__PURE__*/React.createElement(ApaasCheckbox, _this.componentConfig)
|
|
86
91
|
});
|
|
@@ -108,9 +113,13 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
108
113
|
}
|
|
109
114
|
};
|
|
110
115
|
});
|
|
116
|
+
_defineProperty(this, "formDataTransform", function (v) {
|
|
117
|
+
return v === null || v === void 0 ? void 0 : v.value;
|
|
118
|
+
});
|
|
111
119
|
this.name = options.name;
|
|
112
120
|
this.id = options.id;
|
|
113
121
|
this.sortField = "".concat(options.id, "_checkbox");
|
|
122
|
+
this.formField = "".concat(options.id, "_checkbox");
|
|
114
123
|
this.type = options.type;
|
|
115
124
|
this.isCombinationComponent = false;
|
|
116
125
|
this.canSort = true;
|
|
@@ -125,5 +134,7 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
125
134
|
return Promise.resolve();
|
|
126
135
|
}
|
|
127
136
|
}] : [];
|
|
137
|
+
this.dataType = 'array';
|
|
138
|
+
this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
|
|
128
139
|
});
|
|
129
140
|
export default BasicCheckbox;
|
|
@@ -11,8 +11,11 @@ declare class CommonDataTime implements ComponentInterface {
|
|
|
11
11
|
rules: any[];
|
|
12
12
|
componentConfig: ComponentInterface["componentConfig"];
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
14
15
|
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
18
|
+
format: ComponentInterface['format'];
|
|
16
19
|
constructor(options: PickOption);
|
|
17
20
|
getValue: (value: string) => string;
|
|
18
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -24,8 +24,11 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
24
24
|
_defineProperty(this, "rules", void 0);
|
|
25
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
27
28
|
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
|
+
_defineProperty(this, "format", void 0);
|
|
29
32
|
_defineProperty(this, "getValue", function (value) {
|
|
30
33
|
return moment(value).format('YYYY-MM-DD HH:mm:ss');
|
|
31
34
|
});
|
|
@@ -91,11 +94,14 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
91
94
|
this.name = options.name;
|
|
92
95
|
this.id = options.id;
|
|
93
96
|
this.sortField = options.id;
|
|
97
|
+
this.formField = options.id;
|
|
94
98
|
this.type = options.type;
|
|
95
99
|
this.componentConfig = options.componentConfig;
|
|
96
100
|
this.rules = [];
|
|
97
101
|
this.isCombinationComponent = false;
|
|
98
102
|
this.canSort = true;
|
|
99
103
|
this.children = [];
|
|
104
|
+
this.dataType = 'string';
|
|
105
|
+
this.format = 'dateTime';
|
|
100
106
|
});
|
|
101
107
|
export default CommonDataTime;
|
|
@@ -8,8 +8,11 @@ declare class CompletedUser implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
effects: ComponentInterface["effects"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
formField: string;
|
|
11
12
|
canSort: boolean;
|
|
12
13
|
children: ComponentInterface[];
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
|
+
options: ComponentInterface['options'];
|
|
13
16
|
constructor(options: PickOption);
|
|
14
17
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
15
18
|
renderLog: () => null;
|
|
@@ -9,7 +9,8 @@ import React from 'react';
|
|
|
9
9
|
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
10
|
import { SYMBOL } from "../../constant";
|
|
11
11
|
var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
12
|
-
var _this = this
|
|
12
|
+
var _this = this,
|
|
13
|
+
_this$effects2;
|
|
13
14
|
_classCallCheck(this, CompletedUser);
|
|
14
15
|
_defineProperty(this, "name", void 0);
|
|
15
16
|
_defineProperty(this, "id", void 0);
|
|
@@ -18,8 +19,11 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
18
19
|
_defineProperty(this, "componentConfig", void 0);
|
|
19
20
|
_defineProperty(this, "effects", void 0);
|
|
20
21
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
|
+
_defineProperty(this, "formField", void 0);
|
|
21
23
|
_defineProperty(this, "canSort", void 0);
|
|
22
24
|
_defineProperty(this, "children", void 0);
|
|
25
|
+
_defineProperty(this, "dataType", void 0);
|
|
26
|
+
_defineProperty(this, "options", void 0);
|
|
23
27
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
24
28
|
var _record;
|
|
25
29
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
@@ -63,10 +67,13 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
63
67
|
this.name = "完成人";
|
|
64
68
|
this.id = "completedUserName";
|
|
65
69
|
this.sortField = "completedUserName";
|
|
70
|
+
this.formField = "completedUserName";
|
|
66
71
|
this.type = "COMPLETED_USER_INPUT";
|
|
67
72
|
this.effects = options.effects;
|
|
68
73
|
this.isCombinationComponent = false;
|
|
69
74
|
this.canSort = true;
|
|
70
75
|
this.children = [];
|
|
76
|
+
this.dataType = 'string';
|
|
77
|
+
this.options = ((_this$effects2 = this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.userList) || [];
|
|
71
78
|
});
|
|
72
79
|
export default CompletedUser;
|
|
@@ -10,8 +10,11 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
10
10
|
rules: any[];
|
|
11
11
|
componentConfig: ComponentInterface["componentConfig"];
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
13
14
|
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
|
+
format: ComponentInterface['format'];
|
|
15
18
|
constructor(options: PickOption);
|
|
16
19
|
getValue: (value: Value) => string | undefined;
|
|
17
20
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -19,7 +22,7 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
19
22
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
23
|
getComponentValue: (r: Record) => any;
|
|
21
24
|
renderExport: (value: any, record: Record) => any;
|
|
22
|
-
editRender: () => React.JSX.Element;
|
|
25
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
26
|
filterConfig: (item: ColumnConfig) => any;
|
|
24
27
|
}
|
|
25
28
|
export default BasicDataTime;
|