2022-04-09 11:38:04 +08:00
|
|
|
import { buildProps, definePropType } from '@element-plus/utils'
|
2022-04-14 22:13:16 +08:00
|
|
|
import { column } from './common'
|
2022-04-09 11:38:04 +08:00
|
|
|
|
2022-04-17 11:36:14 +08:00
|
|
|
import type { ExtractPropTypes, StyleValue } from 'vue'
|
2022-04-09 11:38:04 +08:00
|
|
|
|
|
|
|
export const tableV2CellProps = buildProps({
|
|
|
|
class: String,
|
|
|
|
cellData: {
|
|
|
|
type: definePropType<any>([String, Boolean, Number, Object]),
|
|
|
|
},
|
2022-04-14 22:13:16 +08:00
|
|
|
column,
|
2022-04-09 11:38:04 +08:00
|
|
|
columnIndex: Number,
|
2022-04-17 11:36:14 +08:00
|
|
|
style: {
|
|
|
|
type: definePropType<StyleValue>([String, Array, Object]),
|
|
|
|
},
|
2022-04-09 11:38:04 +08:00
|
|
|
rowData: {
|
|
|
|
type: definePropType<any>(Object),
|
|
|
|
},
|
|
|
|
rowIndex: Number,
|
|
|
|
} as const)
|
|
|
|
|
|
|
|
export type TableV2CellProps = ExtractPropTypes<typeof tableV2CellProps>
|