organizationSearch.ts
370 Bytes
export const createOrganizationSearch = () => {
return {
showSearch: true,
filterTreeNode: (value, options) => {
const { props } = options || {};
if (!value) {
return true;
}
let { title } = props || {};
value = value?.toLowerCase();
title = title?.toLowerCase();
return title.includes(value);
},
};
};