@meleon/uni-ui
Version:
A uniapp components library written in vue3 and typescript
13 lines (12 loc) • 537 B
TypeScript
import type { Key2TreeNode } from '../index.interface';
export interface CheckedStateInput {
defaultCheckedKeys?: string[];
checkedKeys?: string[];
indeterminateKeys?: string[];
key2TreeNode: Key2TreeNode;
}
export default function useCheckedState(props: CheckedStateInput): {
checkedKeys: import("vue").ComputedRef<string[]>;
indeterminateKeys: import("vue").ComputedRef<string[]>;
setCheckedState(newCheckedKeys: string[], newIndeterminateKeys: string[], reinitialize?: boolean): string[][];
};