hongluan-ui
Version:
Hongluan Component Library for Vue 3
13 lines (12 loc) • 477 B
TypeScript
import type { Ref } from 'vue';
import type { GetRowKey } from '../simple-table';
declare function useExpand({ expandRowKeys, defaultExpandAll, getRowKey }: {
defaultExpandAll: Ref<boolean>;
expandRowKeys: Ref<string[]>;
getRowKey: GetRowKey;
}): {
expandedKeyExisted: (row: unknown, slotName: string) => boolean;
toggleExpandRow: (row: unknown, slotName: string) => void;
toggleExpand: (key: string, slotName: string) => void;
};
export { useExpand };