@jigoooo/shared-ui
Version:
A reusable React component library and design system with TypeScript support, built on Vite for seamless integration and optimized performance.
15 lines (14 loc) • 415 B
TypeScript
export declare function useTableChecked<T extends Record<string, any>, K extends keyof T>({ dataList, dataKey, }: {
dataList: T[];
dataKey: K;
}): {
isChecked: (data: T) => boolean;
checkList: T[K][];
handleCheck: (data: T) => void;
handleCheckAll: () => void;
checkedState: {
isAllChecked: boolean;
isPartiallyChecked: boolean;
};
resetCheckList: () => void;
};