...
|
...
|
@@ -264,6 +264,13 @@ export const trigger_condition_schema: FormSchema[] = [ |
264
|
264
|
useByProductGetAttribute(res, updateSchema, options);
|
265
|
265
|
}
|
266
|
266
|
},
|
|
267
|
+ filterOption: (inputValue: string, option: Record<'label' | 'value', string>) => {
|
|
268
|
+ let { label, value } = option;
|
|
269
|
+ label = label.toLowerCase();
|
|
270
|
+ value = value.toLowerCase();
|
|
271
|
+ inputValue = inputValue.toLowerCase();
|
|
272
|
+ return label.includes(inputValue) || value.includes(inputValue);
|
|
273
|
+ },
|
267
|
274
|
};
|
268
|
275
|
},
|
269
|
276
|
},
|
...
|
...
|
@@ -308,6 +315,13 @@ export const trigger_condition_schema: FormSchema[] = [ |
308
|
315
|
},
|
309
|
316
|
placeholder: '请选择设备',
|
310
|
317
|
getPopupContainer: () => document.body,
|
|
318
|
+ filterOption: (inputValue: string, option: Record<'label' | 'value', string>) => {
|
|
319
|
+ let { label, value } = option;
|
|
320
|
+ label = label.toLowerCase();
|
|
321
|
+ value = value.toLowerCase();
|
|
322
|
+ inputValue = inputValue.toLowerCase();
|
|
323
|
+ return label.includes(inputValue) || value.includes(inputValue);
|
|
324
|
+ },
|
311
|
325
|
};
|
312
|
326
|
},
|
313
|
327
|
ifShow: ({ values }) => isPart(values.device),
|
...
|
...
|
|