UNPKG

hongluan-ui

Version:
9 lines (8 loc) 380 B
import type { Ref } from 'vue'; import type { TreeProps, TreeKey, TreeNode, Tree } 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>; isForceHiddenExpandIcon: (node: TreeNode) => boolean; };