@kmkf-fe-packages/services-components 0.7.4 → 0.7.5-alpha.0
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 -2
- package/dist/esm/components/Address/index.d.ts +20 -3
- package/dist/esm/components/Address/index.js +33 -3
- package/dist/esm/components/Alipay/index.d.ts +2 -0
- package/dist/esm/components/Alipay/index.js +2 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +2 -0
- package/dist/esm/components/AlipayAccount/index.js +4 -0
- package/dist/esm/components/AlipayName/index.d.ts +2 -0
- package/dist/esm/components/AlipayName/index.js +4 -0
- package/dist/esm/components/BuyerNick/index.d.ts +2 -0
- package/dist/esm/components/BuyerNick/index.js +4 -0
- package/dist/esm/components/Cascader/index.d.ts +11 -1
- package/dist/esm/components/Cascader/index.js +18 -2
- package/dist/esm/components/Checkbox/index.d.ts +5 -1
- package/dist/esm/components/Checkbox/index.js +11 -5
- package/dist/esm/components/CommonDataTime/index.d.ts +3 -0
- package/dist/esm/components/CommonDataTime/index.js +11 -0
- package/dist/esm/components/CompletedUser/index.d.ts +8 -4
- package/dist/esm/components/CompletedUser/index.js +7 -1
- package/dist/esm/components/DataTime/index.d.ts +6 -1
- package/dist/esm/components/DataTime/index.js +15 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +2 -0
- package/dist/esm/components/EItemEnCode/index.js +5 -1
- package/dist/esm/components/EItemId/index.d.ts +2 -0
- package/dist/esm/components/EItemId/index.js +5 -1
- package/dist/esm/components/EItemSelect/index.d.ts +1 -0
- package/dist/esm/components/EItemSelect/index.js +2 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +3 -0
- package/dist/esm/components/ErpTradeId/index.js +8 -1
- package/dist/esm/components/Express/index.d.ts +5 -1
- package/dist/esm/components/Express/index.js +7 -1
- package/dist/esm/components/ExpressCode/index.d.ts +2 -0
- package/dist/esm/components/ExpressCode/index.js +4 -0
- package/dist/esm/components/FlowStatusSelect/index.d.ts +8 -4
- package/dist/esm/components/FlowStatusSelect/index.js +12 -6
- package/dist/esm/components/Grade/index.d.ts +1 -0
- package/dist/esm/components/Grade/index.js +2 -0
- package/dist/esm/components/Handler/index.d.ts +8 -4
- package/dist/esm/components/Handler/index.js +7 -1
- package/dist/esm/components/Input/index.d.ts +2 -0
- package/dist/esm/components/Input/index.js +5 -1
- package/dist/esm/components/JstItemSelect/index.d.ts +2 -0
- package/dist/esm/components/JstItemSelect/index.js +21 -15
- package/dist/esm/components/JstLogistics/index.d.ts +7 -2
- package/dist/esm/components/JstLogistics/index.js +8 -1
- package/dist/esm/components/JstSendGood/index.d.ts +2 -0
- package/dist/esm/components/JstSendGood/index.js +5 -0
- package/dist/esm/components/JstSupply/index.d.ts +2 -0
- package/dist/esm/components/JstSupply/index.js +5 -0
- package/dist/esm/components/Logistics/index.d.ts +6 -1
- package/dist/esm/components/Logistics/index.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +2 -1
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +9 -5
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +7 -1
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +9 -5
- package/dist/esm/components/LogisticsInterception/InterceptType.js +7 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +13 -5
- package/dist/esm/components/LogisticsInterception/index.js +2 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +2 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +4 -0
- package/dist/esm/components/MultSelect/index.d.ts +5 -1
- package/dist/esm/components/MultSelect/index.js +8 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +2 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +7 -3
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +8 -4
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +2 -0
- package/dist/esm/components/Ordinary/OrdinarySerial.js +4 -0
- package/dist/esm/components/Ordinary/index.d.ts +11 -2
- package/dist/esm/components/Ordinary/index.js +2 -0
- package/dist/esm/components/Payment/AlipayNick.d.ts +2 -0
- package/dist/esm/components/Payment/AlipayNick.js +4 -0
- package/dist/esm/components/Payment/AlipayNo.d.ts +2 -0
- package/dist/esm/components/Payment/AlipayNo.js +4 -0
- package/dist/esm/components/Payment/AlipayTime.d.ts +3 -0
- package/dist/esm/components/Payment/AlipayTime.js +11 -0
- package/dist/esm/components/Payment/BuyerNick.d.ts +2 -0
- package/dist/esm/components/Payment/BuyerNick.js +4 -0
- package/dist/esm/components/Payment/PaymentAmount.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentAmount.js +5 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +8 -4
- package/dist/esm/components/Payment/PaymentStatus.js +7 -1
- package/dist/esm/components/Payment/PaymentTid.d.ts +3 -0
- package/dist/esm/components/Payment/PaymentTid.js +7 -0
- package/dist/esm/components/Payment/index.d.ts +33 -4
- package/dist/esm/components/Payment/index.js +2 -0
- package/dist/esm/components/Picture/index.d.ts +1 -0
- package/dist/esm/components/Picture/index.js +2 -0
- package/dist/esm/components/PlatForm/index.d.ts +3 -1
- package/dist/esm/components/PlatForm/index.js +4 -0
- package/dist/esm/components/Radio/index.d.ts +5 -1
- package/dist/esm/components/Radio/index.js +11 -5
- package/dist/esm/components/Rate/index.d.ts +1 -0
- package/dist/esm/components/Rate/index.js +2 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +2 -1
- package/dist/esm/components/ReceiverAddress/index.js +2 -0
- package/dist/esm/components/ReceiverMobile/index.d.ts +2 -0
- package/dist/esm/components/ReceiverMobile/index.js +5 -1
- package/dist/esm/components/ReceiverName/index.d.ts +2 -0
- package/dist/esm/components/ReceiverName/index.js +5 -1
- package/dist/esm/components/Remark/index.d.ts +2 -0
- package/dist/esm/components/Remark/index.js +5 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +6 -1
- package/dist/esm/components/ReturnLogistics/index.js +2 -0
- package/dist/esm/components/Select/index.d.ts +5 -1
- package/dist/esm/components/Select/index.js +8 -2
- package/dist/esm/components/ShopInput/index.d.ts +7 -2
- package/dist/esm/components/ShopInput/index.js +17 -2
- package/dist/esm/components/ShopName/index.d.ts +2 -0
- package/dist/esm/components/ShopName/index.js +5 -1
- package/dist/esm/components/Submitter/index.d.ts +9 -4
- package/dist/esm/components/Submitter/index.js +15 -1
- package/dist/esm/components/SystemOrderNo/index.d.ts +3 -0
- package/dist/esm/components/SystemOrderNo/index.js +8 -1
- package/dist/esm/components/TemplateSelect/index.d.ts +2 -0
- package/dist/esm/components/TemplateSelect/index.js +4 -0
- package/dist/esm/components/TextArea/index.d.ts +2 -0
- package/dist/esm/components/TextArea/index.js +5 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +2 -0
- package/dist/esm/components/ThirdItemSelect/index.js +5 -1
- package/dist/esm/components/TradeDateTime/index.d.ts +3 -0
- package/dist/esm/components/TradeDateTime/index.js +14 -2
- package/dist/esm/components/TradeId/index.d.ts +3 -0
- package/dist/esm/components/TradeId/index.js +8 -1
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -0
- package/dist/esm/components/WorkOrderId/index.js +11 -1
- package/dist/esm/constant.d.ts +14 -0
- package/dist/esm/constant.js +14 -0
- package/dist/esm/type.d.ts +8 -2
- package/package.json +4 -4
|
@@ -6,6 +6,7 @@ declare class ActualPayment implements ComponentInterface {
|
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
8
|
isCombinationComponent: boolean;
|
|
9
|
+
canSort: boolean;
|
|
9
10
|
children: ComponentInterface[];
|
|
10
11
|
componentConfig: ComponentInterface["componentConfig"];
|
|
11
12
|
constructor(options: PickOption);
|
|
@@ -16,10 +17,11 @@ declare class ActualPayment implements ComponentInterface {
|
|
|
16
17
|
renderExport: (value: unknown, record: Record) => any;
|
|
17
18
|
editRender: () => React.JSX.Element;
|
|
18
19
|
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
searchDefaultConditions: "between";
|
|
19
21
|
type: string;
|
|
20
22
|
id: string;
|
|
21
23
|
name: string;
|
|
22
|
-
filterComponentType: "
|
|
24
|
+
filterComponentType: "Rate";
|
|
23
25
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
24
26
|
};
|
|
25
27
|
}
|
|
@@ -11,6 +11,7 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { SYMBOL } from "../../constant";
|
|
14
15
|
var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
15
16
|
var _this = this;
|
|
16
17
|
_classCallCheck(this, ActualPayment);
|
|
@@ -19,6 +20,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
19
20
|
_defineProperty(this, "type", void 0);
|
|
20
21
|
_defineProperty(this, "rules", void 0);
|
|
21
22
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "canSort", void 0);
|
|
22
24
|
_defineProperty(this, "children", void 0);
|
|
23
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
26
|
_defineProperty(this, "renderClient", function (record) {
|
|
@@ -57,12 +59,13 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
57
59
|
});
|
|
58
60
|
_defineProperty(this, "filterConfig", function (item) {
|
|
59
61
|
return {
|
|
62
|
+
searchDefaultConditions: SYMBOL.between,
|
|
60
63
|
type: item.type,
|
|
61
|
-
id: item.id,
|
|
64
|
+
id: "".concat(item.id, "_actualPayment"),
|
|
62
65
|
// 过滤组件id
|
|
63
66
|
name: item.name,
|
|
64
67
|
// 过滤组件名称
|
|
65
|
-
filterComponentType: '
|
|
68
|
+
filterComponentType: 'Rate',
|
|
66
69
|
filterFn: function filterFn(value) {
|
|
67
70
|
return function (i) {
|
|
68
71
|
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'actualPayment')).includes(value);
|
|
@@ -74,6 +77,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
74
77
|
this.name = options.name;
|
|
75
78
|
this.type = options.type;
|
|
76
79
|
this.isCombinationComponent = false;
|
|
80
|
+
this.canSort = true;
|
|
77
81
|
this.children = [];
|
|
78
82
|
this.componentConfig = options.componentConfig;
|
|
79
83
|
this.rules = [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
1
|
+
import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare type Value = (string | number)[] | undefined;
|
|
@@ -8,9 +8,10 @@ declare class Address implements ComponentInterface {
|
|
|
8
8
|
type: string;
|
|
9
9
|
rules: any[];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
11
12
|
children: ComponentInterface[];
|
|
12
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
13
|
-
addressDateInstance: AddressData
|
|
14
|
+
addressDateInstance: InstanceType<typeof AddressData>;
|
|
14
15
|
constructor(options: PickOption);
|
|
15
16
|
/**
|
|
16
17
|
* 通过值计算展示内容
|
|
@@ -25,6 +26,22 @@ declare class Address implements ComponentInterface {
|
|
|
25
26
|
getComponentValue: (r: Record) => any[];
|
|
26
27
|
renderExport: (value: any, record: any) => string;
|
|
27
28
|
editRender: () => React.JSX.Element;
|
|
28
|
-
filterConfig: () =>
|
|
29
|
+
filterConfig: (item: ColumnConfig) => {
|
|
30
|
+
searchDefaultConditions: "eq";
|
|
31
|
+
type: string;
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
filterComponentType: "Cascader";
|
|
35
|
+
props: {
|
|
36
|
+
options: any;
|
|
37
|
+
fieldNames: {
|
|
38
|
+
label: string;
|
|
39
|
+
value: string;
|
|
40
|
+
children: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
44
|
+
formatFilterValue: (val: Array<number>) => number | undefined;
|
|
45
|
+
};
|
|
29
46
|
}
|
|
30
47
|
export default Address;
|
|
@@ -8,10 +8,12 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { ApaasAddress } from '@kmkf-fe-packages/basic-components';
|
|
10
10
|
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
|
+
import intersection from 'lodash/intersection';
|
|
11
12
|
import GetFormItem from "../GetFormItem";
|
|
12
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
15
|
import every from 'lodash/every';
|
|
16
|
+
import { SYMBOL } from "../../constant";
|
|
15
17
|
var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
16
18
|
var _this = this;
|
|
17
19
|
_classCallCheck(this, Address);
|
|
@@ -20,6 +22,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
20
22
|
_defineProperty(this, "type", void 0);
|
|
21
23
|
_defineProperty(this, "rules", void 0);
|
|
22
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "canSort", void 0);
|
|
23
26
|
_defineProperty(this, "children", void 0);
|
|
24
27
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
28
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
@@ -82,13 +85,40 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
82
85
|
component: /*#__PURE__*/React.createElement(ApaasAddress, _this.componentConfig)
|
|
83
86
|
});
|
|
84
87
|
});
|
|
85
|
-
_defineProperty(this, "filterConfig", function () {
|
|
86
|
-
return
|
|
88
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
89
|
+
return {
|
|
90
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
91
|
+
type: item.type,
|
|
92
|
+
id: "".concat(item.id, "_basicDistrict"),
|
|
93
|
+
// 过滤组件id
|
|
94
|
+
name: item.name,
|
|
95
|
+
// 过滤组件名称
|
|
96
|
+
filterComponentType: 'Cascader',
|
|
97
|
+
props: {
|
|
98
|
+
options: _this.addressDateInstance.addressOptions || [],
|
|
99
|
+
fieldNames: {
|
|
100
|
+
label: 'label',
|
|
101
|
+
value: 'value',
|
|
102
|
+
children: 'children'
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
filterFn: function filterFn(value) {
|
|
106
|
+
return function (i) {
|
|
107
|
+
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
|
|
108
|
+
};
|
|
109
|
+
},
|
|
110
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
111
|
+
if ((val === null || val === void 0 ? void 0 : val.length) > 2) {
|
|
112
|
+
return val === null || val === void 0 ? void 0 : val[2];
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
87
116
|
});
|
|
88
117
|
this.name = options.name;
|
|
89
118
|
this.id = options.id;
|
|
90
119
|
this.type = options.type;
|
|
91
120
|
this.isCombinationComponent = false;
|
|
121
|
+
this.canSort = true;
|
|
92
122
|
this.children = [];
|
|
93
123
|
this.rules = [];
|
|
94
124
|
this.componentConfig = options.componentConfig;
|
|
@@ -11,6 +11,7 @@ declare class Alipay implements ComponentInterface {
|
|
|
11
11
|
alipayAccount: EAlipayAccount;
|
|
12
12
|
alipayName: EAlipayName;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
15
16
|
constructor(options: PickOption);
|
|
16
17
|
renderClient: (record: Record) => React.JSX.Element;
|
|
@@ -23,6 +24,7 @@ declare class Alipay implements ComponentInterface {
|
|
|
23
24
|
renderExport: () => null;
|
|
24
25
|
editRender: (value: any) => React.JSX.Element;
|
|
25
26
|
filterConfig: (item: ColumnConfig) => {
|
|
27
|
+
searchDefaultConditions: "eq";
|
|
26
28
|
type: string;
|
|
27
29
|
id: string;
|
|
28
30
|
name: string;
|
|
@@ -25,6 +25,7 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
25
25
|
_defineProperty(this, "alipayAccount", void 0);
|
|
26
26
|
_defineProperty(this, "alipayName", void 0);
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
29
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
31
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayName.renderClient(record), _this.alipayAccount.renderClient(record));
|
|
@@ -63,6 +64,7 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
63
64
|
this.id = options.id;
|
|
64
65
|
this.type = options.type;
|
|
65
66
|
this.isCombinationComponent = true;
|
|
67
|
+
this.canSort = false;
|
|
66
68
|
this.componentConfig = options.componentConfig;
|
|
67
69
|
this.alipayAccount = new EAlipayAccount(_objectSpread({}, options));
|
|
68
70
|
this.alipayName = new EAlipayName(_objectSpread({}, options));
|
|
@@ -10,6 +10,7 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
10
10
|
align: ALignType;
|
|
11
11
|
width: number;
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
|
+
canSort: boolean;
|
|
13
14
|
children: ComponentInterface[];
|
|
14
15
|
constructor(options: PickOption);
|
|
15
16
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -19,6 +20,7 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
19
20
|
renderExport: (value?: string) => string;
|
|
20
21
|
editRender: () => React.JSX.Element;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => {
|
|
23
|
+
searchDefaultConditions: "eq";
|
|
22
24
|
type: string;
|
|
23
25
|
id: string;
|
|
24
26
|
name: string;
|
|
@@ -10,6 +10,7 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
12
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { SYMBOL } from "../../constant";
|
|
13
14
|
var AlipayAccount = function AlipayAccount(props) {
|
|
14
15
|
return !props.isSingle ? /*#__PURE__*/React.createElement(ApaasInput, props) : null;
|
|
15
16
|
};
|
|
@@ -25,6 +26,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
25
26
|
_defineProperty(this, "align", void 0);
|
|
26
27
|
_defineProperty(this, "width", void 0);
|
|
27
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "canSort", void 0);
|
|
28
30
|
_defineProperty(this, "children", void 0);
|
|
29
31
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
32
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -65,6 +67,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
65
67
|
});
|
|
66
68
|
_defineProperty(this, "filterConfig", function (item) {
|
|
67
69
|
return {
|
|
70
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
68
71
|
type: item.type,
|
|
69
72
|
id: "".concat(item.id, "_alipayAccount"),
|
|
70
73
|
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
|
|
@@ -80,6 +83,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
80
83
|
this.id = "".concat(options.id, "_alipayAccount");
|
|
81
84
|
this.type = options.type;
|
|
82
85
|
this.isCombinationComponent = false;
|
|
86
|
+
this.canSort = true;
|
|
83
87
|
this.children = [];
|
|
84
88
|
this.align = 'left';
|
|
85
89
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
@@ -8,6 +8,7 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
effects: ComponentInterface["effects"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
11
12
|
children: ComponentInterface[];
|
|
12
13
|
align: ALignType;
|
|
13
14
|
width: number;
|
|
@@ -19,6 +20,7 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
19
20
|
renderExport: (value?: string) => string;
|
|
20
21
|
editRender: () => React.JSX.Element;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => {
|
|
23
|
+
searchDefaultConditions: "eq";
|
|
22
24
|
type: string;
|
|
23
25
|
id: string;
|
|
24
26
|
name: string;
|
|
@@ -10,6 +10,7 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
12
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { SYMBOL } from "../../constant";
|
|
13
14
|
var AlipayName = function AlipayName(props) {
|
|
14
15
|
return !props.isSingle ? /*#__PURE__*/React.createElement(ApaasInput, props) : null;
|
|
15
16
|
};
|
|
@@ -23,6 +24,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
23
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
25
|
_defineProperty(this, "effects", void 0);
|
|
25
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "canSort", void 0);
|
|
26
28
|
_defineProperty(this, "children", void 0);
|
|
27
29
|
_defineProperty(this, "align", void 0);
|
|
28
30
|
_defineProperty(this, "width", void 0);
|
|
@@ -65,6 +67,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
65
67
|
});
|
|
66
68
|
_defineProperty(this, "filterConfig", function (item) {
|
|
67
69
|
return {
|
|
70
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
68
71
|
type: item.type,
|
|
69
72
|
id: "".concat(item.id, "_alipayName"),
|
|
70
73
|
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u540D\u79F0"),
|
|
@@ -80,6 +83,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
80
83
|
this.id = "".concat(options.id, "_alipayName");
|
|
81
84
|
this.type = options.type;
|
|
82
85
|
this.isCombinationComponent = false;
|
|
86
|
+
this.canSort = true;
|
|
83
87
|
this.children = [];
|
|
84
88
|
this.align = 'left';
|
|
85
89
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
@@ -8,6 +8,7 @@ declare class EBuyerNick implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
effects: ComponentInterface["effects"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
canSort: boolean;
|
|
11
12
|
children: ComponentInterface[];
|
|
12
13
|
constructor(options: PickOption);
|
|
13
14
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -20,6 +21,7 @@ declare class EBuyerNick implements ComponentInterface {
|
|
|
20
21
|
renderExport: (value: any, record: any) => any;
|
|
21
22
|
editRender: (value: any) => React.JSX.Element;
|
|
22
23
|
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "like";
|
|
23
25
|
type: string;
|
|
24
26
|
id: string;
|
|
25
27
|
name: string;
|
|
@@ -12,6 +12,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import PlatBuyer from "../../commonComponents/PlatBuyer";
|
|
14
14
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
|
+
import { SYMBOL } from "../../constant";
|
|
15
16
|
var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
16
17
|
var _this = this,
|
|
17
18
|
_this$componentConfig3,
|
|
@@ -24,6 +25,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
26
|
_defineProperty(this, "effects", void 0);
|
|
26
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "canSort", void 0);
|
|
27
29
|
_defineProperty(this, "children", void 0);
|
|
28
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
31
|
var _record$_this$id;
|
|
@@ -76,6 +78,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
76
78
|
});
|
|
77
79
|
_defineProperty(this, "filterConfig", function (item) {
|
|
78
80
|
return {
|
|
81
|
+
searchDefaultConditions: SYMBOL.like,
|
|
79
82
|
type: item.type,
|
|
80
83
|
id: "".concat(item.id, "_buyerNick"),
|
|
81
84
|
// 过滤组件id
|
|
@@ -93,6 +96,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
93
96
|
this.id = options.id;
|
|
94
97
|
this.type = options.type;
|
|
95
98
|
this.isCombinationComponent = false;
|
|
99
|
+
this.canSort = true;
|
|
96
100
|
this.children = [];
|
|
97
101
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
98
102
|
validator: function validator(_, value) {
|
|
@@ -7,6 +7,7 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
7
7
|
rules: any[];
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
|
+
canSort: boolean;
|
|
10
11
|
children: ComponentInterface[];
|
|
11
12
|
constructor(options: PickOption);
|
|
12
13
|
/**
|
|
@@ -22,12 +23,21 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
22
23
|
renderExport: (value: any, record: Record) => string;
|
|
23
24
|
editRender: () => React.JSX.Element;
|
|
24
25
|
filterConfig: (item: ColumnConfig) => {
|
|
26
|
+
searchDefaultConditions: "eq";
|
|
25
27
|
type: string;
|
|
26
28
|
id: string;
|
|
27
29
|
name: string;
|
|
28
30
|
filterComponentType: "Cascader";
|
|
29
|
-
|
|
31
|
+
props: {
|
|
32
|
+
options: any;
|
|
33
|
+
fieldNames: {
|
|
34
|
+
label: string;
|
|
35
|
+
value: string;
|
|
36
|
+
children: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
30
39
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
40
|
+
formatFilterValue: (val: Array<string>) => string | undefined;
|
|
31
41
|
};
|
|
32
42
|
}
|
|
33
43
|
export default BasicCascader;
|
|
@@ -13,6 +13,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
13
13
|
import { findLabelBySelectValue, transMultSelectOptions } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
15
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
|
+
import { SYMBOL } from "../../constant";
|
|
16
17
|
var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
17
18
|
var _this = this;
|
|
18
19
|
_classCallCheck(this, BasicCascader);
|
|
@@ -22,6 +23,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
22
23
|
_defineProperty(this, "rules", void 0);
|
|
23
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
25
27
|
_defineProperty(this, "children", void 0);
|
|
26
28
|
_defineProperty(this, "getValue", function (value) {
|
|
27
29
|
var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
|
|
@@ -87,17 +89,30 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
87
89
|
_defineProperty(this, "filterConfig", function (item) {
|
|
88
90
|
var _item$config;
|
|
89
91
|
return {
|
|
92
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
90
93
|
type: item.type,
|
|
91
|
-
id: item.id,
|
|
94
|
+
id: "".concat(item.id, "_multSelect"),
|
|
92
95
|
// 过滤组件id
|
|
93
96
|
name: item.name,
|
|
94
97
|
// 过滤组件名称
|
|
95
98
|
filterComponentType: 'Cascader',
|
|
96
|
-
|
|
99
|
+
props: {
|
|
100
|
+
options: transMultSelectOptions((item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []),
|
|
101
|
+
fieldNames: {
|
|
102
|
+
label: 'label',
|
|
103
|
+
value: 'actived',
|
|
104
|
+
children: 'children'
|
|
105
|
+
}
|
|
106
|
+
},
|
|
97
107
|
filterFn: function filterFn(value) {
|
|
98
108
|
return function (i) {
|
|
99
109
|
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
|
|
100
110
|
};
|
|
111
|
+
},
|
|
112
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
113
|
+
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
114
|
+
return val[val.length - 1];
|
|
115
|
+
}
|
|
101
116
|
}
|
|
102
117
|
};
|
|
103
118
|
});
|
|
@@ -108,6 +123,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
108
123
|
this.rules = [];
|
|
109
124
|
this.children = [];
|
|
110
125
|
this.isCombinationComponent = false;
|
|
126
|
+
this.canSort = true;
|
|
111
127
|
}
|
|
112
128
|
|
|
113
129
|
/**
|
|
@@ -11,6 +11,7 @@ declare class BasicCheckbox implements ComponentInterface {
|
|
|
11
11
|
rules: any[];
|
|
12
12
|
componentConfig: ComponentInterface["componentConfig"];
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
15
16
|
constructor(options: PickOption);
|
|
16
17
|
getValue: (value: Value) => string | null | undefined;
|
|
@@ -24,11 +25,14 @@ declare class BasicCheckbox implements ComponentInterface {
|
|
|
24
25
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
25
26
|
editRender: () => React.JSX.Element;
|
|
26
27
|
filterConfig: (item: ColumnConfig) => {
|
|
28
|
+
searchDefaultConditions: "in";
|
|
27
29
|
type: string;
|
|
28
30
|
id: string;
|
|
29
31
|
name: string;
|
|
30
32
|
filterComponentType: "MultipleSelect";
|
|
31
|
-
|
|
33
|
+
props: {
|
|
34
|
+
options: any[] | undefined;
|
|
35
|
+
};
|
|
32
36
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
33
37
|
};
|
|
34
38
|
}
|
|
@@ -11,6 +11,7 @@ import { ApaasCheckbox } from '@kmkf-fe-packages/basic-components';
|
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { SYMBOL } from "../../constant";
|
|
14
15
|
var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
15
16
|
var _this = this,
|
|
16
17
|
_options$componentCon;
|
|
@@ -21,6 +22,7 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
21
22
|
_defineProperty(this, "rules", void 0);
|
|
22
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
23
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "canSort", void 0);
|
|
24
26
|
_defineProperty(this, "children", void 0);
|
|
25
27
|
_defineProperty(this, "getValue", function (value) {
|
|
26
28
|
var _value$value, _value$value2, _value$value3;
|
|
@@ -85,16 +87,19 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
85
87
|
_defineProperty(this, "filterConfig", function (item) {
|
|
86
88
|
var _item$config, _item$config2, _item$config2$options, _item$config3;
|
|
87
89
|
return {
|
|
90
|
+
searchDefaultConditions: SYMBOL.in,
|
|
88
91
|
type: item.type,
|
|
89
|
-
id: item.id,
|
|
92
|
+
id: "".concat(item.id, "_checkbox"),
|
|
90
93
|
// 过滤组件id
|
|
91
94
|
name: item.name,
|
|
92
95
|
// 过滤组件名称
|
|
93
96
|
filterComponentType: 'MultipleSelect',
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
props: {
|
|
98
|
+
options: item !== null && item !== void 0 && (_item$config = item.config) !== null && _item$config !== void 0 && _item$config.showOther ? item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : (_item$config2$options = _item$config2.options) === null || _item$config2$options === void 0 ? void 0 : _item$config2$options.concat({
|
|
99
|
+
label: '其他',
|
|
100
|
+
value: '其他'
|
|
101
|
+
}) : (item === null || item === void 0 ? void 0 : (_item$config3 = item.config) === null || _item$config3 === void 0 ? void 0 : _item$config3.options) || []
|
|
102
|
+
},
|
|
98
103
|
filterFn: function filterFn(value) {
|
|
99
104
|
return function (i) {
|
|
100
105
|
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'checkbox')).length > 0;
|
|
@@ -106,6 +111,7 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
106
111
|
this.id = options.id;
|
|
107
112
|
this.type = options.type;
|
|
108
113
|
this.isCombinationComponent = false;
|
|
114
|
+
this.canSort = true;
|
|
109
115
|
this.children = [];
|
|
110
116
|
this.componentConfig = options.componentConfig;
|
|
111
117
|
this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.required ? [{
|
|
@@ -10,6 +10,7 @@ declare class CommonDataTime implements ComponentInterface {
|
|
|
10
10
|
rules: any[];
|
|
11
11
|
componentConfig: ComponentInterface["componentConfig"];
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
|
+
canSort: boolean;
|
|
13
14
|
children: ComponentInterface[];
|
|
14
15
|
constructor(options: PickOption);
|
|
15
16
|
getValue: (value: string) => string;
|
|
@@ -20,11 +21,13 @@ declare class CommonDataTime implements ComponentInterface {
|
|
|
20
21
|
renderExport: (value: any, record: Record) => string;
|
|
21
22
|
editRender: () => null;
|
|
22
23
|
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "between";
|
|
23
25
|
type: string;
|
|
24
26
|
id: string;
|
|
25
27
|
name: string;
|
|
26
28
|
filterComponentType: "Date";
|
|
27
29
|
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
30
|
+
formatFilterValue: (val: Array<any>) => number[] | undefined;
|
|
28
31
|
};
|
|
29
32
|
}
|
|
30
33
|
export default CommonDataTime;
|
|
@@ -9,6 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import moment from 'moment';
|
|
10
10
|
import ItemView from "../../commonComponents/ItemView";
|
|
11
11
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { SYMBOL } from "../../constant";
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* 针对完成时间、创建时间、修改时间定义了3中类型
|
|
@@ -22,6 +23,7 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
22
23
|
_defineProperty(this, "rules", void 0);
|
|
23
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "canSort", void 0);
|
|
25
27
|
_defineProperty(this, "children", void 0);
|
|
26
28
|
_defineProperty(this, "getValue", function (value) {
|
|
27
29
|
return moment(value).format('YYYY-MM-DD HH:mm:ss');
|
|
@@ -57,6 +59,7 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
57
59
|
});
|
|
58
60
|
_defineProperty(this, "filterConfig", function (item) {
|
|
59
61
|
return {
|
|
62
|
+
searchDefaultConditions: SYMBOL.between,
|
|
60
63
|
type: item.type,
|
|
61
64
|
id: item.id,
|
|
62
65
|
// 过滤组件id
|
|
@@ -68,6 +71,13 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
68
71
|
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, '');
|
|
69
72
|
return _filterFn.filterDateFn(value, recordDateTime);
|
|
70
73
|
};
|
|
74
|
+
},
|
|
75
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
76
|
+
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
77
|
+
return val === null || val === void 0 ? void 0 : val.map(function (v) {
|
|
78
|
+
return moment(v).valueOf();
|
|
79
|
+
});
|
|
80
|
+
}
|
|
71
81
|
}
|
|
72
82
|
};
|
|
73
83
|
});
|
|
@@ -77,6 +87,7 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
77
87
|
this.componentConfig = options.componentConfig;
|
|
78
88
|
this.rules = [];
|
|
79
89
|
this.isCombinationComponent = false;
|
|
90
|
+
this.canSort = true;
|
|
80
91
|
this.children = [];
|
|
81
92
|
});
|
|
82
93
|
export default CommonDataTime;
|
|
@@ -7,6 +7,7 @@ declare class CompletedUser implements ComponentInterface {
|
|
|
7
7
|
componentConfig: ComponentInterface["componentConfig"];
|
|
8
8
|
effects: ComponentInterface["effects"];
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
|
+
canSort: boolean;
|
|
10
11
|
children: ComponentInterface[];
|
|
11
12
|
constructor(options: PickOption);
|
|
12
13
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
@@ -16,14 +17,17 @@ declare class CompletedUser implements ComponentInterface {
|
|
|
16
17
|
renderClient: () => null;
|
|
17
18
|
editRender: () => null;
|
|
18
19
|
filterConfig: (item: ColumnConfig) => {
|
|
20
|
+
searchDefaultConditions: "in";
|
|
19
21
|
type: string;
|
|
20
22
|
id: string;
|
|
21
23
|
name: string;
|
|
22
24
|
filterComponentType: "MultipleSelect";
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
props: {
|
|
26
|
+
options: {
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
27
31
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
28
32
|
};
|
|
29
33
|
}
|
|
@@ -7,6 +7,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
7
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
8
|
import React from 'react';
|
|
9
9
|
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
import { SYMBOL } from "../../constant";
|
|
10
11
|
var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
11
12
|
var _this = this;
|
|
12
13
|
_classCallCheck(this, CompletedUser);
|
|
@@ -16,6 +17,7 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
16
17
|
_defineProperty(this, "componentConfig", void 0);
|
|
17
18
|
_defineProperty(this, "effects", void 0);
|
|
18
19
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
20
|
+
_defineProperty(this, "canSort", void 0);
|
|
19
21
|
_defineProperty(this, "children", void 0);
|
|
20
22
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
21
23
|
var _record;
|
|
@@ -40,13 +42,16 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
40
42
|
_defineProperty(this, "filterConfig", function (item) {
|
|
41
43
|
var _this$effects;
|
|
42
44
|
return {
|
|
45
|
+
searchDefaultConditions: SYMBOL.in,
|
|
43
46
|
type: item.type,
|
|
44
47
|
id: item.id,
|
|
45
48
|
// 过滤组件id
|
|
46
49
|
name: item.name,
|
|
47
50
|
// 过滤组件名称
|
|
48
51
|
filterComponentType: 'MultipleSelect',
|
|
49
|
-
|
|
52
|
+
props: {
|
|
53
|
+
options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || []
|
|
54
|
+
},
|
|
50
55
|
filterFn: function filterFn(value) {
|
|
51
56
|
return function (i) {
|
|
52
57
|
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
|
|
@@ -59,6 +64,7 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
59
64
|
this.type = "COMPLETED_USER_INPUT";
|
|
60
65
|
this.effects = options.effects;
|
|
61
66
|
this.isCombinationComponent = false;
|
|
67
|
+
this.canSort = true;
|
|
62
68
|
this.children = [];
|
|
63
69
|
});
|
|
64
70
|
export default CompletedUser;
|