iview/dist/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
2018-08-30 18:11:37 +08:00
// Project: https://github.com/iview/iview
// Definitions by: yangdan
// Definitions: https://github.com/yangdan8/iview.git
2018-09-03 13:28:21 +08:00
import Vue, { VNode } from 'vue';
2018-08-30 18:11:37 +08:00
2018-09-03 13:28:21 +08:00
export declare interface LoadingBar {
2018-08-30 18:11:37 +08:00
/**
* 0
*/
start(): void;
/**
*
*/
finish(): void;
/**
*
*/
error(): void;
/**
*
* @param percent
*/
update(percent?: number): void;
/**
*
* @param options
*/
config(options?: LoadingBarConfig): void;
/**
*
*/
destroy(): void;
}
2018-09-03 13:28:21 +08:00
export declare interface LoadingBarConfig {
2018-08-30 18:11:37 +08:00
/**
* iView
* @default primary
*/
color?: string;
/**
* iView
* @default error
*/
failedColor?: string;
/**
* px
* @default 2
*/
height?: number;
}
declare module 'vue/types/vue' {
interface Vue {
/**
*
*/
2018-09-03 14:08:13 +08:00
$Loading: LoadingBar;
2018-08-30 18:11:37 +08:00
}
}