update the master branch to the latest
This commit is contained in:
parent
67d534df27
commit
23a0ba9831
611 changed files with 122648 additions and 0 deletions
68
types/loading-bar.d.ts
vendored
Normal file
68
types/loading-bar.d.ts
vendored
Normal file
|
@ -0,0 +1,68 @@
|
|||
// Type definitions for iview 3.3.1
|
||||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue from 'vue';
|
||||
|
||||
export const LoadingBar: LoadingBarClass;
|
||||
|
||||
export declare class LoadingBarClass extends Vue {
|
||||
/**
|
||||
* 开始从 0 显示进度条,并自动加载进度
|
||||
*/
|
||||
start(): void;
|
||||
/**
|
||||
* 结束进度条,自动补全剩余进度
|
||||
*/
|
||||
finish(): void;
|
||||
/**
|
||||
* 以错误的类型结束进度条,自动补全剩余进度
|
||||
*/
|
||||
error(): void;
|
||||
/**
|
||||
* 精确加载到指定的进度
|
||||
* @param percent 指定的进度百分比
|
||||
*/
|
||||
update(percent?: number): void;
|
||||
/**
|
||||
* 全局配置
|
||||
* @param options 配置对象
|
||||
*/
|
||||
config(options?: LoadingBarConfig): void;
|
||||
/**
|
||||
* 全局销毁
|
||||
*/
|
||||
destroy(): void;
|
||||
}
|
||||
|
||||
export declare class LoadingBarConfig {
|
||||
/**
|
||||
* 进度条的颜色,默认为 iView 主色
|
||||
* @default primary
|
||||
*/
|
||||
color?: string;
|
||||
/**
|
||||
* 失败时的进度条颜色,默认为 iView 主色
|
||||
* @default error
|
||||
*/
|
||||
failedColor?: string;
|
||||
/**
|
||||
* 进度条高度,单位 px
|
||||
* @default 2
|
||||
*/
|
||||
height?: number;
|
||||
/**
|
||||
* 自动消失的延时, 默认为800ms
|
||||
* @default 800
|
||||
*/
|
||||
duration?: number;
|
||||
}
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
/**
|
||||
* 加载进度条
|
||||
*/
|
||||
$Loading: LoadingBarClass;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue