UNPKG

1.3 kBTypeScriptView Raw
1import { VXEComponent } from '../component'
2import { VxeTableDefines, VxeTableDataRow } from '../table'
3import { VxeColumnPropTypes } from '../column'
4
5/* eslint-disable no-use-before-define */
6
7/**
8 * 表格模块 - 自定义列
9 */
10export const VxeTableCustomModule: VXEComponent<{ [key: string]: any }>
11/**
12 * 表格模块 - 自定义列
13 */
14export const Custom: VXEComponent<{ [key: string]: any }>
15
16export interface VxeCustomPanel {
17}
18
19export interface TableCustomMethods<D = VxeTableDataRow> {
20 /**
21 * 打开自定义面板
22 */
23 openCustom(): Promise<void>
24 /**
25 * 处理自定义面板
26 */
27 closeCustom(): Promise<void>
28}
29
30export interface TableCustomPrivateMethods<D = VxeTableDataRow> {
31 checkCustomStatus(): void
32 emitCustomEvent(type: string, evnt: Event): void
33 triggerCustomEvent(evnt: MouseEvent): void
34 customOpenEvent (evnt: Event): void
35 customColseEvent (evnt: Event): void
36}
37
38declare module '../grid' {
39 export interface VxeGridMethods<D = VxeTableDataRow> extends TableCustomMethods<D> { }
40}
41
42declare module '../table' {
43 export interface VxeTableMethods<D = VxeTableDataRow> extends TableCustomMethods<D> { }
44 export interface VxeTablePrivateMethods<D = VxeTableDataRow> extends TableCustomPrivateMethods<D> { }
45}