2022-04-09 17:02:08 +08:00
|
|
|
import { buildProps, definePropType } from '@element-plus/utils'
|
|
|
|
import { columns } from './common'
|
|
|
|
|
|
|
|
import type { CSSProperties, ExtractPropTypes } from 'vue'
|
2022-04-29 17:57:39 +08:00
|
|
|
import type { KeyType } from './types'
|
2022-04-09 17:02:08 +08:00
|
|
|
|
|
|
|
export const tableV2HeaderRowProps = buildProps({
|
|
|
|
class: String,
|
|
|
|
columns,
|
2022-04-29 17:57:39 +08:00
|
|
|
columnsStyles: {
|
|
|
|
type: definePropType<Record<KeyType, CSSProperties>>(Object),
|
|
|
|
required: true,
|
|
|
|
},
|
2022-04-09 17:02:08 +08:00
|
|
|
headerIndex: Number,
|
|
|
|
style: { type: definePropType<CSSProperties>(Object) },
|
|
|
|
} as const)
|
|
|
|
|
|
|
|
export type TableV2HeaderRowProps = ExtractPropTypes<
|
|
|
|
typeof tableV2HeaderRowProps
|
|
|
|
>
|