|
|
@ -1,5 +1,3 @@ |
|
|
|
import type { PropsType } from '../types/PropsType'; |
|
|
|
|
|
|
|
import { RowClick } from './src/RowClick'; |
|
|
|
import { RowDbClick } from './src/RowDbClick'; |
|
|
|
import { AfterDragAndDrop } from './src/AfterDragAndDrop'; |
|
|
@ -14,6 +12,7 @@ import { AfterRemove } from './src/AfterRemove'; |
|
|
|
import { AfterEditorOpen } from './src/AfterEditorOpen'; |
|
|
|
import { GridTools } from '../GridTools'; |
|
|
|
import { TableType } from '../types/TableType'; |
|
|
|
import { Constant, PropsType } from '../../ts/index'; |
|
|
|
|
|
|
|
/** |
|
|
|
* w-grid 表格事件管理器 |
|
|
@ -54,8 +53,10 @@ export class EventManager { |
|
|
|
* @param index 行下标 |
|
|
|
*/ |
|
|
|
public rowClick(evt: any, row: any, index: number) { |
|
|
|
if (row[Constant.FIELD_NAMES.SELECTABLE]) { |
|
|
|
this._rowClick.execute(evt, row, index); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 行双击事件 |
|
|
@ -64,8 +65,10 @@ export class EventManager { |
|
|
|
* @param index 行下标 |
|
|
|
*/ |
|
|
|
public rowDbClick(evt: any, row: any, index: number) { |
|
|
|
if (row[Constant.FIELD_NAMES.SELECTABLE]) { |
|
|
|
this._rowDbClick.execute(evt, row, index); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 行拖拽排序后触发事件 |
|
|
|