UNPKG

naive-ui

Version:

A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast

21 lines (20 loc) 1.04 kB
import type { CheckStrategy } from 'treemate'; import type { Key, TmNode, TreeOption } from './interface'; import { type ComputedRef } from 'vue'; export declare function useMergedCheckStrategy(props: { leafOnly: boolean; checkStrategy: CheckStrategy; }): ComputedRef<CheckStrategy>; export declare function isNodeDisabled(node: TmNode, disabledField: string): boolean; export declare function keysWithFilter(nodes: TreeOption[], pattern: string, keyField: string, childrenField: string, filter: (pattern: string, node: TreeOption) => boolean): { expandedKeys: Key[]; highlightKeySet: Set<Key>; }; declare const emptyImage: HTMLImageElement | null; export { emptyImage }; export declare function filterTree(tree: TreeOption[], filter: (pattern: string, v: TreeOption) => boolean, pattern: string, keyField: string, childrenField: string): { filteredTree: TreeOption[]; expandedKeys: Key[]; highlightKeySet: Set<Key>; }; export declare function treeGetClickTarget(e: MouseEvent): 'checkbox' | 'switcher' | 'node';