@arim-aisdc/public-components 2.3.23 → 2.3.24
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.
|
@@ -17,7 +17,7 @@ export declare const foramtBaseInfoField: (data: any, dataField: BaseInfoFieldTy
|
|
|
17
17
|
value: any;
|
|
18
18
|
field: string;
|
|
19
19
|
label?: string;
|
|
20
|
-
text: string |
|
|
20
|
+
text: string | Element | JSX.Element;
|
|
21
21
|
units?: string;
|
|
22
22
|
width?: string;
|
|
23
23
|
labelWidth?: string;
|
|
@@ -125,6 +125,10 @@ export var getFormatFilters = function getFormatFilters(columns, originFilters)
|
|
|
125
125
|
// 多选组件
|
|
126
126
|
formatFilters["".concat(formatKey, "List")] = value;
|
|
127
127
|
// formatFilters[formatKey] = value;
|
|
128
|
+
} else if (filterType === FilterType.SingleSelect) {
|
|
129
|
+
// 单选组件
|
|
130
|
+
formatFilters[formatKey] = value.filterValue;
|
|
131
|
+
// formatFilters[formatKey] = value;
|
|
128
132
|
} else {
|
|
129
133
|
// 其他
|
|
130
134
|
formatFilters[formatKey] = value;
|
|
@@ -195,8 +199,11 @@ export var getFormatFiltersV2 = function getFormatFiltersV2(columns, originFilte
|
|
|
195
199
|
// Input组件
|
|
196
200
|
res.operator = FilterOperator.Contains;
|
|
197
201
|
res.value = value;
|
|
202
|
+
} else if (filterType === FilterType.SingleSelect) {
|
|
203
|
+
res.operator = FilterOperator.Eq;
|
|
204
|
+
res.value = value.filterValue;
|
|
198
205
|
} else {
|
|
199
|
-
// 其他组件: SingleDate/SingleNumber
|
|
206
|
+
// 其他组件: SingleDate/SingleNumber
|
|
200
207
|
res.operator = FilterOperator.Eq;
|
|
201
208
|
res.value = value;
|
|
202
209
|
}
|