UNPKG

bonree-cascader

Version:

cascade select ui component for react

20 lines (19 loc) 647 B
import * as React from 'react'; import type { FlattenOptions } from '../OptionList'; import type { FieldNames, ShowSearchType } from '../interface'; export interface SearchResultConfig { prefixCls: string; searchConfig: ShowSearchType; flattenOptions: FlattenOptions; fieldNames: FieldNames; changeOnSelect: boolean; searchValue: string; } export default function useSearchResult(resultConfig: SearchResultConfig): { title: React.ReactNode; children?: import("../interface").OptionDataNode[]; node: import("../interface").DataNode; value: string | number; disabled?: boolean; isLeaf?: boolean; }[];