修改d.ts中的类名,并添加全局方法的d.ts定义
This commit is contained in:
parent
c703e2b4a4
commit
6d9afa9c19
60 changed files with 216 additions and 212 deletions
8
types/loading-bar.d.ts
vendored
8
types/loading-bar.d.ts
vendored
|
@ -2,9 +2,9 @@
|
|||
// Project: https://github.com/iview/iview
|
||||
// Definitions by: yangdan
|
||||
// Definitions: https://github.com/yangdan8/iview.git
|
||||
import Vue, { VNode } from "vue";
|
||||
import Vue, { VNode } from 'vue';
|
||||
|
||||
export declare class LoadingBarInstance {
|
||||
export declare class LoadingBar {
|
||||
/**
|
||||
* 开始从 0 显示进度条,并自动加载进度
|
||||
*/
|
||||
|
@ -51,11 +51,11 @@ export declare class LoadingBarConfig {
|
|||
height?: number;
|
||||
}
|
||||
|
||||
declare module "vue/types/vue" {
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
/**
|
||||
* 加载进度条
|
||||
*/
|
||||
$Loading?: LoadingBarInstance;
|
||||
$Loading?: LoadingBar;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue