Files

37 lines
941 B
TypeScript
Raw Permalink Normal View History

2026-02-10 08:05:03 +08:00
/* eslint-disable */
/**
* PMC
* */
import type { TdStepItemProps } from './type';
export default {
/** 步骤描述 */
content: {
type: String,
default: '' as TdStepItemProps['content'],
},
/** 步骤条自定义内容 */
extra: {
type: String,
},
/** 图标。传入 slot 代表使用插槽,其他字符串代表使用内置图标 */
icon: {
type: String,
},
/** 当前步骤的状态:默认状态(未开始)、进行中状态、完成状态、错误状态 */
status: {
type: String,
default: 'default' as TdStepItemProps['status'],
validator(val: TdStepItemProps['status']): boolean {
if (!val) return true;
return ['default', 'process', 'finish', 'error'].includes(val);
},
},
/** 标题 */
title: {
type: String,
default: '' as TdStepItemProps['title'],
},
};