2018-08-30 13:27:15 +08:00
|
|
|
|
// Type definitions for iview 3.0.1
|
2018-08-21 08:29:24 +08:00
|
|
|
|
// Project: https://github.com/iview/iview
|
|
|
|
|
// Definitions by: yangdan
|
|
|
|
|
// Definitions: https://github.com/yangdan8/iview.git
|
|
|
|
|
import Vue, { VNode } from "vue";
|
|
|
|
|
|
2018-08-30 13:27:15 +08:00
|
|
|
|
export declare class Steps extends Vue {
|
2018-08-21 08:29:24 +08:00
|
|
|
|
/**
|
|
|
|
|
* 当前步骤,从 0 开始计数
|
|
|
|
|
* @default 0
|
|
|
|
|
*/
|
|
|
|
|
current?: number;
|
|
|
|
|
/**
|
|
|
|
|
* 当前步骤的状态,可选值为wait、process、finish、error
|
|
|
|
|
* @default process
|
|
|
|
|
*/
|
|
|
|
|
status?: 'wait' | 'process' | 'finish' | 'error';
|
|
|
|
|
/**
|
|
|
|
|
* 步骤条的尺寸,可选值为small或者不写
|
|
|
|
|
*/
|
|
|
|
|
size?: '' | 'small';
|
|
|
|
|
/**
|
|
|
|
|
* 步骤条的方向,可选值为horizontal(水平)或vertical(垂直)
|
|
|
|
|
* @default horizontal
|
|
|
|
|
*/
|
|
|
|
|
direction?: 'horizontal' | 'vertical';
|
|
|
|
|
}
|
|
|
|
|
|
2018-08-30 13:27:15 +08:00
|
|
|
|
export declare class Step extends Vue {
|
2018-08-21 08:29:24 +08:00
|
|
|
|
/**
|
|
|
|
|
* 步骤的状态,可选值为wait、process、finish、error,不设置时自动判断
|
|
|
|
|
* @default process
|
|
|
|
|
*/
|
|
|
|
|
status?: 'wait' | 'process' | 'finish' | 'error';
|
|
|
|
|
/**
|
|
|
|
|
* 标题
|
|
|
|
|
* @default 空
|
|
|
|
|
*/
|
|
|
|
|
title?: string;
|
|
|
|
|
/**
|
|
|
|
|
* 步骤的详细描述,可选
|
|
|
|
|
*/
|
|
|
|
|
content?: string;
|
|
|
|
|
/**
|
|
|
|
|
* 步骤的图标,可选
|
|
|
|
|
*/
|
|
|
|
|
icon?: string;
|
|
|
|
|
}
|