mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 09:50:58 +08:00
83aba9fd7a
- Add ExpandIcon for rendering expandable row - Fix a potential bug in VirtualGrid component - Add method for mapping expandable data
23 lines
579 B
TypeScript
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>
|