21 lines
1.0 KiB
TypeScript
21 lines
1.0 KiB
TypeScript
import { type ComputedRef } from 'vue';
|
|
import { type CheckStrategy } from 'treemate';
|
|
import { type Key, type TmNode, type TreeOption } from './interface';
|
|
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';
|