完成d.ts定义的优化
This commit is contained in:
parent
6da055f33f
commit
414730dde3
61 changed files with 353 additions and 382 deletions
47
types/progress.d.ts
vendored
Normal file
47
types/progress.d.ts
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
// Type definitions for iview 3.0.1
|
||||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
|
||||
export declare class Progress extends Vue {
|
||||
/**
|
||||
* 百分比
|
||||
* @default 0
|
||||
*/
|
||||
percent?: number;
|
||||
/**
|
||||
* 状态,可选值为normal、active、wrong、success
|
||||
* @default normal
|
||||
*/
|
||||
status?: 'normal'|'active'|'wrong'|'success';
|
||||
/**
|
||||
* 进度条的线宽,单位 px
|
||||
* @default 10
|
||||
*/
|
||||
'stroke-width'?: number;
|
||||
/**
|
||||
* 隐藏数值或状态图标
|
||||
* @default false
|
||||
*/
|
||||
'hide-info'?: boolean;
|
||||
/**
|
||||
* 是否在垂直方向显示
|
||||
* @default false
|
||||
*/
|
||||
vertical?: boolean;
|
||||
/**
|
||||
* 已完成的分段百分比
|
||||
* @default 0
|
||||
*/
|
||||
'success-percent'?: number;
|
||||
/**
|
||||
* slot插槽对象
|
||||
*/
|
||||
$slots: {
|
||||
/**
|
||||
* 自定义显示状态内容
|
||||
*/
|
||||
'': VNode[];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue