Commit ce0b0d1178777d46745c281335354bd8e192b8cf

Authored by ww
1 parent aac80c35

perf: product profiles model of matter add search unit

... ... @@ -152,6 +152,14 @@ export const formSchemas: FormSchema[] = [
152 152 setFieldsValue({ [FormField.UNIT_NAME]: label });
153 153 },
154 154 getPopupContainer: () => document.body,
  155 + showSearch: true,
  156 + filterOption: (inputValue: string, option: Record<'label' | 'value', string>) => {
  157 + let { label, value } = option;
  158 + label = label.toLowerCase();
  159 + value = value.toLowerCase();
  160 + inputValue = inputValue.toLowerCase();
  161 + return label.includes(inputValue) || value.includes(inputValue);
  162 + },
155 163 };
156 164 },
157 165 ifShow: ({ values }) =>
... ...