Files
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

41 lines
965 B
TypeScript

import { buildProps, iconPropType } from '@element-plus/utils'
import type Step from './item.vue'
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'
export const stepProps = buildProps({
/**
* @description step title
*/
title: {
type: String,
default: '',
},
/**
* @description step custom icon. Icons can be passed via named slot as well
*/
icon: {
type: iconPropType,
},
/**
* @description step description
*/
description: {
type: String,
default: '',
},
/**
* @description current status. It will be automatically set by Steps if not configured.
*/
status: {
type: String,
values: ['', 'wait', 'process', 'finish', 'error', 'success'],
default: '',
},
} as const)
export type StepProps = ExtractPropTypes<typeof stepProps>
export type StepPropsPublic = __ExtractPublicPropTypes<typeof stepProps>
export type StepInstance = InstanceType<typeof Step> & unknown