vue-devui
Version:
DevUI components based on Vite and Vue3
14 lines (13 loc) • 717 B
TypeScript
import type { SetupContext } from 'vue';
import type { DataGridProps, InnerRowData, RowData } from '../data-grid-types';
export declare function useDataGridTree(props: DataGridProps, ctx: SetupContext, afterToggleExpandTree: () => void): {
allChecked: import("vue").Ref<boolean>;
halfAllChecked: import("vue").Ref<boolean>;
updateInnerRowsData: () => void;
getShowRowsData: () => InnerRowData[];
toggleRowExpansion: (node: InnerRowData, status?: boolean) => void;
toggleAllRowExpansion: (status?: boolean) => void;
toggleRowChecked: (node: InnerRowData | RowData, status?: boolean) => void;
toggleAllRowChecked: (status?: boolean) => void;
getCheckedRows: () => InnerRowData[];
};