@layui/layui-vue
Version:
a component library for Vue 3 base on layui-vue
9 lines (8 loc) • 376 B
TypeScript
import type { RequiredTableProps, TableEmit } from "../typing";
type KeyType = string | number;
export declare function useTableExpand(props: RequiredTableProps, emit: TableEmit): {
checkExpand: (key: KeyType) => boolean;
toggleExpand: (key: KeyType, state: boolean) => void;
};
export type UseTableExpandReturn = ReturnType<typeof useTableExpand>;
export {};