mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* 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 commitdb0116a288. * Revert "chore: fix" This reverts commit69c82a90c0. * chore: fix * style: `pnpm lint:fix` * fix: lint * chore: `pnpm format`
40 lines
866 B
TypeScript
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
|