@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 | JSX.Element | Element;
20
+ text: string | Element | JSX.Element;
21
21
  units?: string;
22
22
  width?: string;
23
23
  labelWidth?: string;
@@ -22,6 +22,7 @@
22
22
  .single-com-wrapper {
23
23
  padding: 8px 12px;
24
24
  border-radius: 2px;
25
+ position: relative;
25
26
  }
26
27
 
27
28
  .filter-icon-wrapper {
@@ -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/SingleSelect
206
+ // 其他组件: SingleDate/SingleNumber
200
207
  res.operator = FilterOperator.Eq;
201
208
  res.value = value;
202
209
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arim-aisdc/public-components",
3
- "version": "2.3.23",
3
+ "version": "2.3.24",
4
4
  "description": "前端组件库",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",