element-plus/packages/components/table-v2/src/cell.ts

23 lines
579 B
TypeScript
Raw Normal View History

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>