Files
element-plus/packages/components/steps/src/item.ts
Noblet Ouways 2f17df1209 style(eslint-config): newline before import type (#21036)
* perf: change to import-x

* feat: add rules

* chore: fix rule

* chore: fix

* chore: fix

* chore: fix

* style: `pnpm lint:fix`

* Revert "style: `pnpm lint:fix`"

This reverts commit db0116a288.

* Revert "chore: fix"

This reverts commit 69c82a90c0.

* chore: fix

* style: `pnpm lint:fix`

* fix: lint

* chore: `pnpm format`
2025-06-16 15:37:12 +08:00

40 lines
866 B
TypeScript

import { buildProps, iconPropType } from '@element-plus/utils'
import type Step from './item.vue'
import type { ExtractPropTypes } 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 StepInstance = InstanceType<typeof Step> & unknown