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>
41 lines
965 B
TypeScript
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
|