element-plus/packages/components/table-v2/src/header-row.ts
2022-04-29 17:57:39 +08:00

21 lines
569 B
TypeScript

import { buildProps, definePropType } from '@element-plus/utils'
import { columns } from './common'
import type { CSSProperties, ExtractPropTypes } from 'vue'
import type { KeyType } from './types'
export const tableV2HeaderRowProps = buildProps({
class: String,
columns,
columnsStyles: {
type: definePropType<Record<KeyType, CSSProperties>>(Object),
required: true,
},
headerIndex: Number,
style: { type: definePropType<CSSProperties>(Object) },
} as const)
export type TableV2HeaderRowProps = ExtractPropTypes<
typeof tableV2HeaderRowProps
>