UNPKG

bonree-cascader

Version:

cascade select ui component for react

21 lines (20 loc) 680 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; treeCheckStrictly?: boolean; } export default function useSearchResult(resultConfig: SearchResultConfig): { title: React.ReactNode; children?: import("../interface").OptionDataNode[]; node: import("../interface").DataNode; value: string | number; disabled?: boolean; isLeaf?: boolean; }[];