iview/types/loading-bar.d.ts

61 lines
1.2 KiB
TypeScript
Raw Normal View History

2018-08-31 18:04:17 +08:00
// Type definitions for iview 3.1.0
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
import Vue, { VNode } from 'vue';
export declare interface LoadingBar {
/**
* 0
*/
start(): void;
/**
*
*/
finish(): void;
/**
*
*/
error(): void;
/**
*
* @param percent
*/
update(percent?: number): void;
/**
*
* @param options
*/
config(options?: LoadingBarConfig): void;
/**
*
*/
destroy(): void;
}
export declare interface 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;
}
}