linkmore-design 1.1.26 → 1.1.27
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.
|
@@ -172,7 +172,12 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
172
172
|
fieldType: (item === null || item === void 0 ? void 0 : item.valueType) || 'string',
|
|
173
173
|
type: item.type,
|
|
174
174
|
value: Array.isArray(itemValue) ? itemValue : [itemValue],
|
|
175
|
-
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* and 等同于逻辑关系contains: 选中的值包含所有值
|
|
178
|
+
* or 等同于逻辑关系in: 选中的值存在于所有值之中
|
|
179
|
+
*/
|
|
180
|
+
operator: obj[cur].mode === 'and' ? 'contains' : 'in'
|
|
176
181
|
}]);
|
|
177
182
|
}
|
|
178
183
|
|
|
@@ -343,7 +348,7 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
343
348
|
fieldType: (item === null || item === void 0 ? void 0 : item.valueType) || 'string',
|
|
344
349
|
type: item.type,
|
|
345
350
|
value: Array.isArray(itemValue) ? itemValue : [itemValue],
|
|
346
|
-
operator: complexFilter[cur].mode === 'and' ? '
|
|
351
|
+
operator: complexFilter[cur].mode === 'and' ? 'contains' : 'in'
|
|
347
352
|
};
|
|
348
353
|
}
|
|
349
354
|
|
|
@@ -188,7 +188,12 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
188
188
|
fieldType: (item === null || item === void 0 ? void 0 : item.valueType) || 'string',
|
|
189
189
|
type: item.type,
|
|
190
190
|
value: Array.isArray(itemValue) ? itemValue : [itemValue],
|
|
191
|
-
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* and 等同于逻辑关系contains: 选中的值包含所有值
|
|
194
|
+
* or 等同于逻辑关系in: 选中的值存在于所有值之中
|
|
195
|
+
*/
|
|
196
|
+
operator: obj[cur].mode === 'and' ? 'contains' : 'in'
|
|
192
197
|
}]);
|
|
193
198
|
}
|
|
194
199
|
|
|
@@ -359,7 +364,7 @@ var useCoreOptions = function useCoreOptions(_ref) {
|
|
|
359
364
|
fieldType: (item === null || item === void 0 ? void 0 : item.valueType) || 'string',
|
|
360
365
|
type: item.type,
|
|
361
366
|
value: Array.isArray(itemValue) ? itemValue : [itemValue],
|
|
362
|
-
operator: complexFilter[cur].mode === 'and' ? '
|
|
367
|
+
operator: complexFilter[cur].mode === 'and' ? 'contains' : 'in'
|
|
363
368
|
};
|
|
364
369
|
}
|
|
365
370
|
|