element-plus
Version:
A Component Library for Vue 3
9 lines (8 loc) • 392 B
TypeScript
import type { Ref } from 'vue';
import type { Tree, TreeKey, TreeNode, TreeProps } from '../types';
export declare function useFilter(props: TreeProps, tree: Ref<Tree | undefined>): {
hiddenExpandIconKeySet: Ref<Set<TreeKey>>;
hiddenNodeKeySet: Ref<Set<TreeKey>>;
doFilter: (query: string) => Set<TreeKey> | undefined;
isForceHiddenExpandIcon: (node: TreeNode) => boolean;
};