@kmkf-fe-packages/services-components 0.7.3-alpha.1 → 0.7.3-alpha.3
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/Address/index.d.ts +3 -1
- package/dist/esm/components/Address/index.js +3 -1
- package/dist/esm/components/Cascader/index.d.ts +3 -1
- package/dist/esm/components/Cascader/index.js +3 -1
- package/dist/esm/components/Checkbox/index.d.ts +3 -1
- package/dist/esm/components/Checkbox/index.js +6 -4
- package/dist/esm/components/CompletedUser/index.d.ts +6 -4
- package/dist/esm/components/CompletedUser/index.js +3 -1
- package/dist/esm/components/DataTime/index.d.ts +3 -1
- package/dist/esm/components/DataTime/index.js +3 -1
- package/dist/esm/components/Express/index.d.ts +3 -1
- package/dist/esm/components/Express/index.js +3 -1
- package/dist/esm/components/FlowStatusSelect/index.d.ts +6 -4
- package/dist/esm/components/FlowStatusSelect/index.js +8 -6
- package/dist/esm/components/Handler/index.d.ts +6 -4
- package/dist/esm/components/Handler/index.js +3 -1
- package/dist/esm/components/JstLogistics/index.d.ts +4 -2
- package/dist/esm/components/JstLogistics/index.js +3 -1
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +6 -4
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +3 -1
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +6 -4
- package/dist/esm/components/LogisticsInterception/InterceptType.js +3 -1
- package/dist/esm/components/MultSelect/index.d.ts +3 -1
- package/dist/esm/components/MultSelect/index.js +3 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +3 -3
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +3 -3
- package/dist/esm/components/Ordinary/index.d.ts +1 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +6 -4
- package/dist/esm/components/Payment/PaymentStatus.js +3 -1
- package/dist/esm/components/Radio/index.d.ts +3 -1
- package/dist/esm/components/Radio/index.js +6 -4
- package/dist/esm/components/Select/index.d.ts +3 -1
- package/dist/esm/components/Select/index.js +3 -1
- package/dist/esm/components/ShopInput/index.d.ts +4 -2
- package/dist/esm/components/ShopInput/index.js +4 -2
- package/dist/esm/components/Submitter/index.d.ts +6 -4
- package/dist/esm/components/Submitter/index.js +3 -1
- package/dist/esm/type.d.ts +1 -1
- package/package.json +2 -2
|
@@ -93,7 +93,9 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
93
93
|
name: item.name,
|
|
94
94
|
// 过滤组件名称
|
|
95
95
|
filterComponentType: 'Cascader',
|
|
96
|
-
|
|
96
|
+
props: {
|
|
97
|
+
options: _this.addressDateInstance.addressOptions || []
|
|
98
|
+
},
|
|
97
99
|
filterFn: function filterFn(value) {
|
|
98
100
|
return function (i) {
|
|
99
101
|
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
|
|
@@ -95,7 +95,9 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
95
95
|
name: item.name,
|
|
96
96
|
// 过滤组件名称
|
|
97
97
|
filterComponentType: 'Cascader',
|
|
98
|
-
|
|
98
|
+
props: {
|
|
99
|
+
options: transMultSelectOptions((item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || [])
|
|
100
|
+
},
|
|
99
101
|
filterFn: function filterFn(value) {
|
|
100
102
|
return function (i) {
|
|
101
103
|
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
|
|
@@ -29,7 +29,9 @@ declare class BasicCheckbox implements ComponentInterface {
|
|
|
29
29
|
id: string;
|
|
30
30
|
name: string;
|
|
31
31
|
filterComponentType: "MultipleSelect";
|
|
32
|
-
|
|
32
|
+
props: {
|
|
33
|
+
options: any[] | undefined;
|
|
34
|
+
};
|
|
33
35
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
34
36
|
};
|
|
35
37
|
}
|
|
@@ -93,10 +93,12 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
93
93
|
name: item.name,
|
|
94
94
|
// 过滤组件名称
|
|
95
95
|
filterComponentType: 'MultipleSelect',
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
props: {
|
|
97
|
+
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({
|
|
98
|
+
label: '其他',
|
|
99
|
+
value: '其他'
|
|
100
|
+
}) : (item === null || item === void 0 ? void 0 : (_item$config3 = item.config) === null || _item$config3 === void 0 ? void 0 : _item$config3.options) || []
|
|
101
|
+
},
|
|
100
102
|
filterFn: function filterFn(value) {
|
|
101
103
|
return function (i) {
|
|
102
104
|
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'checkbox')).length > 0;
|
|
@@ -21,10 +21,12 @@ declare class CompletedUser implements ComponentInterface {
|
|
|
21
21
|
id: string;
|
|
22
22
|
name: string;
|
|
23
23
|
filterComponentType: "MultipleSelect";
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
props: {
|
|
25
|
+
options: {
|
|
26
|
+
label: string;
|
|
27
|
+
value: string;
|
|
28
|
+
}[];
|
|
29
|
+
};
|
|
28
30
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
29
31
|
};
|
|
30
32
|
}
|
|
@@ -48,7 +48,9 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
48
48
|
name: item.name,
|
|
49
49
|
// 过滤组件名称
|
|
50
50
|
filterComponentType: 'MultipleSelect',
|
|
51
|
-
|
|
51
|
+
props: {
|
|
52
|
+
options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || []
|
|
53
|
+
},
|
|
52
54
|
filterFn: function filterFn(value) {
|
|
53
55
|
return function (i) {
|
|
54
56
|
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
|
|
@@ -89,7 +89,9 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
89
89
|
name: item.name,
|
|
90
90
|
// 过滤组件名称
|
|
91
91
|
filterComponentType: 'Date',
|
|
92
|
-
|
|
92
|
+
props: {
|
|
93
|
+
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
|
|
94
|
+
},
|
|
93
95
|
filterFn: function filterFn(value) {
|
|
94
96
|
return function (i) {
|
|
95
97
|
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, 'dateTime');
|
|
@@ -68,7 +68,9 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
68
68
|
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
69
69
|
name: "".concat(item.name, "-\u7269\u6D41\u516C\u53F8"),
|
|
70
70
|
filterComponentType: 'MultipleSelect',
|
|
71
|
-
|
|
71
|
+
props: {
|
|
72
|
+
options: _this.expressDateInstance.getExpressData() || []
|
|
73
|
+
},
|
|
72
74
|
filterFn: function filterFn(value) {
|
|
73
75
|
return function (i) {
|
|
74
76
|
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)));
|
|
@@ -24,10 +24,12 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
24
24
|
id: string;
|
|
25
25
|
name: string;
|
|
26
26
|
filterComponentType: "MultipleSelect";
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
props: {
|
|
28
|
+
options: {
|
|
29
|
+
label: any;
|
|
30
|
+
value: string;
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
31
33
|
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
32
34
|
};
|
|
33
35
|
}
|
|
@@ -92,12 +92,14 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
92
92
|
name: item.name,
|
|
93
93
|
// 过滤组件名称
|
|
94
94
|
filterComponentType: 'MultipleSelect',
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
props: {
|
|
96
|
+
options: (_Object$keys = Object.keys(_this.workOrderStatus)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(function (item) {
|
|
97
|
+
return {
|
|
98
|
+
label: _this.workOrderStatus[item].label,
|
|
99
|
+
value: item
|
|
100
|
+
};
|
|
101
|
+
})
|
|
102
|
+
},
|
|
101
103
|
filterFn: function filterFn(value) {
|
|
102
104
|
return function (i) {
|
|
103
105
|
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
|
|
@@ -23,10 +23,12 @@ declare class Handler implements ComponentInterface {
|
|
|
23
23
|
id: string;
|
|
24
24
|
name: string;
|
|
25
25
|
filterComponentType: "MultipleSelect";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
props: {
|
|
27
|
+
options: {
|
|
28
|
+
label: string;
|
|
29
|
+
value: string;
|
|
30
|
+
}[];
|
|
31
|
+
};
|
|
30
32
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
31
33
|
};
|
|
32
34
|
}
|
|
@@ -55,7 +55,9 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
|
55
55
|
name: item.name,
|
|
56
56
|
// 过滤组件名称
|
|
57
57
|
filterComponentType: 'MultipleSelect',
|
|
58
|
-
|
|
58
|
+
props: {
|
|
59
|
+
options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || []
|
|
60
|
+
},
|
|
59
61
|
filterFn: function filterFn(value) {
|
|
60
62
|
return function (i) {
|
|
61
63
|
var _ref;
|
|
@@ -25,14 +25,16 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
25
25
|
name: string;
|
|
26
26
|
filterComponentType: "Input";
|
|
27
27
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
28
|
-
|
|
28
|
+
props?: undefined;
|
|
29
29
|
} | {
|
|
30
30
|
searchDefaultConditions: "in";
|
|
31
31
|
type: string;
|
|
32
32
|
id: string;
|
|
33
33
|
name: string;
|
|
34
34
|
filterComponentType: "MultipleSelect";
|
|
35
|
-
|
|
35
|
+
props: {
|
|
36
|
+
options: any[];
|
|
37
|
+
};
|
|
36
38
|
filterFn: (value: string) => (i: Record) => any;
|
|
37
39
|
})[];
|
|
38
40
|
}
|
|
@@ -94,7 +94,9 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
94
94
|
id: "".concat(item.id, "_logisticsCompany"),
|
|
95
95
|
name: "jst\u7269\u6D41\u516C\u53F8",
|
|
96
96
|
filterComponentType: 'MultipleSelect',
|
|
97
|
-
|
|
97
|
+
props: {
|
|
98
|
+
options: _this.expressDateInstance.getExpressData() || []
|
|
99
|
+
},
|
|
98
100
|
filterFn: function filterFn(value) {
|
|
99
101
|
return function (i) {
|
|
100
102
|
var _ref;
|
|
@@ -29,10 +29,12 @@ declare class InterceptStatus implements ComponentInterface {
|
|
|
29
29
|
id: string;
|
|
30
30
|
name: string;
|
|
31
31
|
filterComponentType: "MultipleSelect";
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
props: {
|
|
33
|
+
options: {
|
|
34
|
+
label: string;
|
|
35
|
+
value: string;
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
36
38
|
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
37
39
|
};
|
|
38
40
|
}
|
|
@@ -72,7 +72,9 @@ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options
|
|
|
72
72
|
id: "".concat(item.id, "_interceptLogisticsStatus"),
|
|
73
73
|
name: "".concat(item.name, "-\u7269\u6D41\u72B6\u6001"),
|
|
74
74
|
filterComponentType: "MultipleSelect",
|
|
75
|
-
|
|
75
|
+
props: {
|
|
76
|
+
options: _this.expressInterceptInstance.getStatusOptions() || []
|
|
77
|
+
},
|
|
76
78
|
filterFn: function filterFn(value) {
|
|
77
79
|
return function (i) {
|
|
78
80
|
var _value$map, _value$map$flat;
|
|
@@ -27,10 +27,12 @@ declare class InterceptType implements ComponentInterface {
|
|
|
27
27
|
id: string;
|
|
28
28
|
name: string;
|
|
29
29
|
filterComponentType: "MultipleSelect";
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
props: {
|
|
31
|
+
options: {
|
|
32
|
+
label: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
34
36
|
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
35
37
|
};
|
|
36
38
|
}
|
|
@@ -59,7 +59,9 @@ var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
|
|
|
59
59
|
id: "".concat(item.id, "_interceptType"),
|
|
60
60
|
name: "".concat(item.name, "-\u62E6\u622A\u7C7B\u578B"),
|
|
61
61
|
filterComponentType: "MultipleSelect",
|
|
62
|
-
|
|
62
|
+
props: {
|
|
63
|
+
options: _this.expressInterceptInstance.getTypeOptions() || []
|
|
64
|
+
},
|
|
63
65
|
filterFn: function filterFn(value) {
|
|
64
66
|
return function (i) {
|
|
65
67
|
var _value$map, _value$map$flat;
|
|
@@ -21,7 +21,9 @@ declare class BasicMultSelect implements ComponentInterface {
|
|
|
21
21
|
id: string;
|
|
22
22
|
name: string;
|
|
23
23
|
filterComponentType: "MultipleSelect";
|
|
24
|
-
|
|
24
|
+
props: {
|
|
25
|
+
options: any[];
|
|
26
|
+
};
|
|
25
27
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
26
28
|
};
|
|
27
29
|
}
|
|
@@ -74,7 +74,9 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
74
74
|
name: item.name,
|
|
75
75
|
// 过滤组件名称
|
|
76
76
|
filterComponentType: 'MultipleSelect',
|
|
77
|
-
|
|
77
|
+
props: {
|
|
78
|
+
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
|
|
79
|
+
},
|
|
78
80
|
filterFn: function filterFn(value) {
|
|
79
81
|
return function (i) {
|
|
80
82
|
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
|
|
@@ -66,12 +66,12 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
|
|
|
66
66
|
return {
|
|
67
67
|
searchDefaultConditions: SYMBOL.in,
|
|
68
68
|
type: item.type,
|
|
69
|
-
id: "".concat(item.id, "
|
|
70
|
-
name: "".concat(item.name, "-\
|
|
69
|
+
id: "".concat(item.id, "_ordinaryTaitou"),
|
|
70
|
+
name: "".concat(item.name, "-\u53D1\u7968\u62AC\u5934"),
|
|
71
71
|
filterComponentType: 'Input',
|
|
72
72
|
filterFn: function filterFn(value) {
|
|
73
73
|
return function (i) {
|
|
74
|
-
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, '
|
|
74
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'ordinaryTaitou')).includes(value);
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
};
|
|
@@ -59,12 +59,12 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
59
59
|
return {
|
|
60
60
|
searchDefaultConditions: SYMBOL.between,
|
|
61
61
|
type: item.type,
|
|
62
|
-
id: "".concat(item.id, "
|
|
63
|
-
name: "".concat(item.name, "-\
|
|
62
|
+
id: "".concat(item.id, "_ordinaryMoney"),
|
|
63
|
+
name: "".concat(item.name, "-\u5F00\u7968\u91D1\u989D"),
|
|
64
64
|
filterComponentType: 'Rate',
|
|
65
65
|
filterFn: function filterFn(value) {
|
|
66
66
|
return function (i) {
|
|
67
|
-
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, '
|
|
67
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'ordinaryMoney')).includes(value);
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
};
|
|
@@ -35,7 +35,7 @@ declare class Ordinary implements ComponentInterface {
|
|
|
35
35
|
type: string;
|
|
36
36
|
id: string;
|
|
37
37
|
name: string;
|
|
38
|
-
filterComponentType: "
|
|
38
|
+
filterComponentType: "Rate";
|
|
39
39
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
40
40
|
} | {
|
|
41
41
|
searchDefaultConditions: "in";
|
|
@@ -30,10 +30,12 @@ declare class PaymentStatus implements ComponentInterface {
|
|
|
30
30
|
id: string;
|
|
31
31
|
name: string;
|
|
32
32
|
filterComponentType: "MultipleSelect";
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
props: {
|
|
34
|
+
options: {
|
|
35
|
+
label: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}[];
|
|
38
|
+
};
|
|
37
39
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
40
|
};
|
|
39
41
|
}
|
|
@@ -54,7 +54,9 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
54
54
|
id: "".concat(item.id, "_enterprisePaymentStatus"),
|
|
55
55
|
name: "".concat(item.name, "-\u6253\u6B3E\u72B6\u6001"),
|
|
56
56
|
filterComponentType: 'MultipleSelect',
|
|
57
|
-
|
|
57
|
+
props: {
|
|
58
|
+
options: _this.paymentStatusOptions
|
|
59
|
+
},
|
|
58
60
|
filterFn: function filterFn(value) {
|
|
59
61
|
return function (i) {
|
|
60
62
|
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentStatus'));
|
|
@@ -29,7 +29,9 @@ declare class BasicRadio implements ComponentInterface {
|
|
|
29
29
|
id: string;
|
|
30
30
|
name: string;
|
|
31
31
|
filterComponentType: "MultipleSelect";
|
|
32
|
-
|
|
32
|
+
props: {
|
|
33
|
+
options: any[] | undefined;
|
|
34
|
+
};
|
|
33
35
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
34
36
|
};
|
|
35
37
|
}
|
|
@@ -76,10 +76,12 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
76
76
|
name: item.name,
|
|
77
77
|
// 过滤组件名称
|
|
78
78
|
filterComponentType: 'MultipleSelect',
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
props: {
|
|
80
|
+
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({
|
|
81
|
+
label: '其他',
|
|
82
|
+
value: '其他'
|
|
83
|
+
}) : (item === null || item === void 0 ? void 0 : (_item$config3 = item.config) === null || _item$config3 === void 0 ? void 0 : _item$config3.options) || []
|
|
84
|
+
},
|
|
83
85
|
filterFn: function filterFn(value) {
|
|
84
86
|
return function (i) {
|
|
85
87
|
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'radio'));
|
|
@@ -67,7 +67,9 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
67
67
|
name: item.name,
|
|
68
68
|
// 过滤组件名称
|
|
69
69
|
filterComponentType: 'MultipleSelect',
|
|
70
|
-
|
|
70
|
+
props: {
|
|
71
|
+
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
|
|
72
|
+
},
|
|
71
73
|
filterFn: function filterFn(value) {
|
|
72
74
|
return function (i) {
|
|
73
75
|
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'select'));
|
|
@@ -21,8 +21,10 @@ declare class ShopInput implements ComponentInterface {
|
|
|
21
21
|
id: string;
|
|
22
22
|
name: string;
|
|
23
23
|
filterComponentType: "ShopList";
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
props: {
|
|
25
|
+
shopList: any[];
|
|
26
|
+
mode: string;
|
|
27
|
+
};
|
|
26
28
|
filterFn: (value: string) => (i: Record) => boolean | undefined;
|
|
27
29
|
};
|
|
28
30
|
}
|
|
@@ -54,8 +54,10 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
54
54
|
name: item.name,
|
|
55
55
|
// 过滤组件名称
|
|
56
56
|
filterComponentType: 'ShopList',
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
props: {
|
|
58
|
+
shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || [],
|
|
59
|
+
mode: 'multiple'
|
|
60
|
+
},
|
|
59
61
|
filterFn: function filterFn(value) {
|
|
60
62
|
return function (i) {
|
|
61
63
|
var _this$effects2, _this$effects2$shopLi, _this$effects2$shopLi2, _this$effects2$shopLi3;
|
|
@@ -21,10 +21,12 @@ declare class Submitter implements ComponentInterface {
|
|
|
21
21
|
id: string;
|
|
22
22
|
name: string;
|
|
23
23
|
filterComponentType: "MultipleSelect";
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
props: {
|
|
25
|
+
options: {
|
|
26
|
+
label: string;
|
|
27
|
+
value: string;
|
|
28
|
+
}[] | undefined;
|
|
29
|
+
};
|
|
28
30
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
29
31
|
};
|
|
30
32
|
}
|
|
@@ -48,7 +48,9 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
48
48
|
name: item.name,
|
|
49
49
|
// 过滤组件名称
|
|
50
50
|
filterComponentType: 'MultipleSelect',
|
|
51
|
-
|
|
51
|
+
props: {
|
|
52
|
+
options: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList
|
|
53
|
+
},
|
|
52
54
|
filterFn: function filterFn(value) {
|
|
53
55
|
return function (i) {
|
|
54
56
|
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ export declare type FilterConfigType = {
|
|
|
12
12
|
type: string;
|
|
13
13
|
id: string;
|
|
14
14
|
name: string;
|
|
15
|
-
options?: any[];
|
|
16
15
|
filterComponentType: FilterComponentType;
|
|
16
|
+
props?: Record;
|
|
17
17
|
filterFn?: (p: any) => (r: Record) => unknown;
|
|
18
18
|
};
|
|
19
19
|
export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.7.3-alpha.
|
|
3
|
+
"version": "0.7.3-alpha.3",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "16fa3cfef3ddf6c5545e3b6d48f42ce92af29816"
|
|
44
44
|
}
|