lc-vue-pro-table
Version:
vue3高级表格
14 lines (13 loc) • 554 B
TypeScript
import { Ref } from 'vue';
import { SelectionRows, TableConfig } from './types';
export declare const useSelection: ({ selectionRows, tableConfig, isSameRow }: {
selectionRows: Ref<SelectionRows>;
tableConfig: Ref<TableConfig>;
isSameRow: (a: any, b: any) => boolean;
}) => {
checked: import("vue").ComputedRef<boolean>;
indeterminate: import("vue").ComputedRef<boolean>;
rowCheckedStatusList: import("vue").ComputedRef<boolean[]>;
toggleRowSelection: (row: any, selected: any) => void;
toggleAllSelection: () => void;
};