@opensig/opendesign
Version:
58 lines (57 loc) • 1.52 kB
TypeScript
import { ExtractPropTypes, PropType, Component } from 'vue';
import { DirectionT } from '../_utils/types';
export declare const StepItemStatusTypes: readonly ["finished", "processing", "waiting", "failed"];
export type StepItemStatusT = (typeof StepItemStatusTypes)[number];
export declare const stepProps: {
/**
* @zh-CN 步骤条方向
* @en-US Direction of the step bar.
* @default 'h'
*/
direction: {
type: PropType<DirectionT>;
default: string;
};
};
export declare const stepItemProps: {
/**
* @zh-CN 标题
* @en-US title
*/
readonly title: {
readonly type: StringConstructor;
};
/**
* @zh-CN 描述
* @en-US description
*/
readonly description: {
readonly type: StringConstructor;
};
/**
* @zh-CN 状态
* @en-US Status
* @default 'finished'
*/
readonly status: {
readonly type: PropType<StepItemStatusT>;
readonly default: "finished";
};
/**
* @zh-CN 当前是第几步 从0记起
* @en-US Which step is it currently? Counting from 0.
*/
readonly stepIndex: {
readonly type: NumberConstructor;
readonly required: true;
};
/**
* @zh-CN 步骤图标
* @en-US Step icon.
*/
readonly icon: {
readonly type: PropType<boolean | Component>;
};
};
export type StepPropsT = ExtractPropTypes<typeof stepProps>;
export type StepItemPropsT = ExtractPropTypes<typeof stepItemProps>;