UNPKG

@fe6/water-pro

Version:

An enterprise-class UI design language and Vue-based implementation

14 lines (13 loc) 660 B
/** @format */ import type { TableProProps, TableRowSelection } from '../types/table'; import { ComputedRef, Ref } from 'vue'; export declare function useRowSelection(propsRef: ComputedRef<TableProProps>, tableData: Ref<Recordable[]>, emit: EmitType): { getRowSelection: () => TableRowSelection<any>; getRowSelectionRef: ComputedRef<TableRowSelection<any>>; getSelectRows: <T = Recordable<any>>() => T[]; getSelectRowKeys: () => string[] | number[]; setSelectedRowKeys: (rowKeys: string[]) => void; clearSelectedRowKeys: () => void; deleteSelectRowByKey: (key: string) => void; setSelectedRows: (rows: Recordable[]) => void; };