@uozi-admin/curd
Version:
Easy to implement curd.
15 lines (14 loc) • 461 B
TypeScript
import { Ref } from 'vue';
import { ExportColumn, StdTableColumn } from '../types';
export declare function useExport(config: {
columns: StdTableColumn[];
api?: (params: Record<string, any>) => Promise<any>;
}): {
exportExcel: (selectedRowKey: any, selectedRows: any) => void;
exportColumns: Ref<ExportColumn[], ExportColumn[]>;
state: {
indeterminate: boolean;
checkAll: boolean;
};
onCheckAllChange: () => void;
};