@opensig/opendesign
Version:
58 lines (57 loc) • 922 B
JavaScript
const StepItemStatusTypes = ["finished", "processing", "waiting", "failed"];
const stepProps = {
/**
* @zh-CN 步骤条方向
* @en-US Direction of the step bar.
* @default 'h'
*/
direction: {
type: String,
default: "h"
}
};
const stepItemProps = {
/**
* @zh-CN 标题
* @en-US title
*/
title: {
type: String
},
/**
* @zh-CN 描述
* @en-US description
*/
description: {
type: String
},
/**
* @zh-CN 状态
* @en-US Status
* @default 'finished'
*/
status: {
type: String,
default: "finished"
},
/**
* @zh-CN 当前是第几步 从0记起
* @en-US Which step is it currently? Counting from 0.
*/
stepIndex: {
type: Number,
required: true
},
/**
* @zh-CN 步骤图标
* @en-US Step icon.
*/
icon: {
type: [Boolean, Object]
}
};
export {
StepItemStatusTypes,
stepItemProps,
stepProps
};