Files
element-plus/packages/components/table-v2/src/header-cell.ts
yuhengshen cfc661c626 feat(types): [components] add public prop types (#21222)
* feat(types): [utils] add ExtractPublicPropTypes type

* feat(types): [components] add props public type

* chore(types): use type-only import for Prop from 'vue'

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-07-07 00:51:32 +08:00

16 lines
437 B
TypeScript

import { buildProps } from '@element-plus/utils'
import { classType, column } from './common'
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'
export const tableV2HeaderCell = buildProps({
class: classType,
columnIndex: Number,
column,
})
export type TableV2HeaderCell = ExtractPropTypes<typeof tableV2HeaderCell>
export type TableV2HeaderCellPublic = __ExtractPublicPropTypes<
typeof tableV2HeaderCell
>