element-plus/packages/components/table-v2/src/cell.ts
JeremyWuuuuu 83aba9fd7a
feat(components): [virtual-table] renderer (#7191)
- Add ExpandIcon for rendering expandable row
- Fix a potential bug in VirtualGrid component
- Add method for mapping expandable data
2022-04-17 11:36:14 +08:00

23 lines
579 B
TypeScript

import { buildProps, definePropType } from '@element-plus/utils'
import { column } from './common'
import type { ExtractPropTypes, StyleValue } from 'vue'
export const tableV2CellProps = buildProps({
class: String,
cellData: {
type: definePropType<any>([String, Boolean, Number, Object]),
},
column,
columnIndex: Number,
style: {
type: definePropType<StyleValue>([String, Array, Object]),
},
rowData: {
type: definePropType<any>(Object),
},
rowIndex: Number,
} as const)
export type TableV2CellProps = ExtractPropTypes<typeof tableV2CellProps>