UNPKG

@fe6/water-pro

Version:

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

21 lines (20 loc) 815 B
/** @format */ import type { ComputedRef } from 'vue'; import type { TableProProps } from '../types/table'; interface Options { setSelectedRowKeys: (keys: string[]) => void; getSelectRowKeys: () => string[] | number[]; clearSelectedRowKeys: () => void; emit: EmitType; getAutoCreateKey: ComputedRef<boolean | undefined>; } export declare function useCustomRow(propsRef: ComputedRef<TableProProps>, { setSelectedRowKeys, getSelectRowKeys, getAutoCreateKey, clearSelectedRowKeys, emit }: Options): { customRow: (record: Recordable, index: number) => { onClick: (e: Event) => void; onDblclick: (event: Event) => void; onContextmenu: (event: Event) => void; onMouseenter: (event: Event) => void; onMouseleave: (event: Event) => void; }; }; export {};