fix(nc-gui): refactor user select input

This commit is contained in:
Ramesh Mane
2025-06-25 15:47:28 +00:00
parent 82413c9356
commit f3e9fecbbe
5 changed files with 304 additions and 218 deletions

View File

@@ -130,8 +130,8 @@ export const searchCompare = (source?: NestedArray<string | number | undefined>,
*/
export const antSelectFilterOption = (
inputValue: string,
option?: DefaultOptionType,
searchKey: keyof DefaultOptionType | (keyof DefaultOptionType)[] = 'key',
option?: DefaultOptionType | NcListItemType,
searchKey: keyof DefaultOptionType | keyof NcListItemType | (keyof NcListItemType)[] | (keyof DefaultOptionType)[] = 'key',
) => {
if (!option) return false