mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 18:01:24 +08:00
22 lines
546 B
TypeScript
22 lines
546 B
TypeScript
|
import { buildProps, definePropType } from '@element-plus/utils'
|
||
|
|
||
|
import type { ExtractPropTypes } from 'vue'
|
||
|
import type { Column } from './types'
|
||
|
|
||
|
export const tableV2CellProps = buildProps({
|
||
|
class: String,
|
||
|
cellData: {
|
||
|
type: definePropType<any>([String, Boolean, Number, Object]),
|
||
|
},
|
||
|
column: {
|
||
|
type: definePropType<Column<any>>(Object),
|
||
|
},
|
||
|
columnIndex: Number,
|
||
|
rowData: {
|
||
|
type: definePropType<any>(Object),
|
||
|
},
|
||
|
rowIndex: Number,
|
||
|
} as const)
|
||
|
|
||
|
export type TableV2CellProps = ExtractPropTypes<typeof tableV2CellProps>
|