mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 20:27:44 +08:00
docs(components): [table-v2] update the type description for Events (#13362)
This commit is contained in:
parent
c4d8270296
commit
972c8f4ef4
@ -498,6 +498,32 @@ type HeaderCellSlotProps = {
|
||||
onColumnSorted: (e: MouseEvent) => void
|
||||
}
|
||||
|
||||
type RowCommonParams = {
|
||||
rowData: any
|
||||
rowIndex: number
|
||||
}
|
||||
|
||||
type RowEventHandlerParams = {
|
||||
rowKey: KeyType
|
||||
event: Event
|
||||
} & RowCommonParams
|
||||
|
||||
type RowEventHandler = (params: RowEventHandlerParams) => void
|
||||
type RowEventHandlers = {
|
||||
onClick?: RowEventHandler
|
||||
onContextmenu?: RowEventHandler
|
||||
onDblclick?: RowEventHandler
|
||||
onMouseenter?: RowEventHandler
|
||||
onMouseleave?: RowEventHandler
|
||||
}
|
||||
|
||||
type RowsRenderedParams = {
|
||||
rowCacheStart: number
|
||||
rowCacheEnd: number
|
||||
rowVisibleStart: number
|
||||
rowVisibleEnd: number
|
||||
}
|
||||
|
||||
type RowSlotProps = {
|
||||
columnIndex: number
|
||||
rowIndex: number
|
||||
@ -507,6 +533,11 @@ type RowSlotProps = {
|
||||
style: CSSProperties
|
||||
}
|
||||
|
||||
type RowExpandParams = {
|
||||
expanded: boolean
|
||||
rowKey: KeyType
|
||||
} & RowCommonParams
|
||||
|
||||
type Data = {
|
||||
[key: KeyType]: any
|
||||
children?: Array<any>
|
||||
|
Loading…
Reference in New Issue
Block a user