mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* 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>
30 lines
703 B
TypeScript
30 lines
703 B
TypeScript
import { buildProps, definePropType } from '@element-plus/utils'
|
|
import { column } from './common'
|
|
|
|
import type {
|
|
ExtractPropTypes,
|
|
StyleValue,
|
|
__ExtractPublicPropTypes,
|
|
} 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>
|
|
export type TableV2CellPropsPublic = __ExtractPublicPropTypes<
|
|
typeof tableV2CellProps
|
|
>
|