UNPKG

1.22 kBTypeScriptView Raw
1import { VXEComponent } from '../component'
2import { VxeTableDataRow } from '../table'
3
4/* eslint-disable no-use-before-define */
5
6/**
7 * 表格模块 - 键盘导航
8 */
9export const VxeTableKeyboardModule: VXEComponent<{ [key: string]: any }>
10/**
11 * 表格模块 - 键盘导航
12 */
13export const Keyboard: VXEComponent<{ [key: string]: any }>
14
15export interface TableKeyboardMethods<D = VxeTableDataRow> {}
16
17export interface TableKeyboardPrivateMethods<D = VxeTableDataRow> {
18 moveTabSelected(args: any, isLeft: any, evnt: any): void
19 moveCurrentRow(isUpArrow: any, isDwArrow: any, evnt: any): void
20 moveSelected(args: any, isLeftArrow: any, isUpArrow: any, isRightArrow: any, isDwArrow: any, evnt: any): void
21 triggerHeaderCellMousedownEvent(evnt: any, params: any): void
22 triggerCellMousedownEvent(evnt: any, params: any): void
23 }
24
25declare module '../grid' {
26 export interface VxeGridMethods<D = VxeTableDataRow> extends TableKeyboardMethods<D> { }
27}
28
29declare module '../table' {
30 export interface VxeTableMethods<D = VxeTableDataRow> extends TableKeyboardMethods<D> { }
31 export interface VxeTablePrivateMethods<D = VxeTableDataRow> extends TableKeyboardPrivateMethods<D> { }
32}