This commit is contained in:
梁灏 2018-08-30 18:11:37 +08:00
parent ba9d70c770
commit a3a90be7d5
68 changed files with 6446 additions and 1510 deletions

61
dist/types/loading-bar.d.ts vendored Normal file
View file

@ -0,0 +1,61 @@
// 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 from 'vue';
export declare class LoadingBar {
/**
* 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;
}
declare module 'vue/types/vue' {
interface Vue {
/**
*
*/
$Loading?: LoadingBar;
}
}