From 12c24293ae7759d92a97d2692407101a808f03d9 Mon Sep 17 00:00:00 2001 From: yangd Date: Tue, 21 May 2019 11:42:51 +0800 Subject: [PATCH] 修复几个组件的d.ts定义内容 --- types/loading-bar.d.ts | 2 +- types/message.d.ts | 2 +- types/modal.d.ts | 4 ++-- types/notice.d.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/types/loading-bar.d.ts b/types/loading-bar.d.ts index a79ff5a..9d4b365 100644 --- a/types/loading-bar.d.ts +++ b/types/loading-bar.d.ts @@ -6,7 +6,7 @@ import Vue from 'vue'; export const LoadingBar: LoadingBarClass; -export declare class LoadingBarClass { +export declare class LoadingBarClass extends Vue { /** * 开始从 0 显示进度条,并自动加载进度 */ diff --git a/types/message.d.ts b/types/message.d.ts index dd96962..230496e 100644 --- a/types/message.d.ts +++ b/types/message.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/yangdan8/iview.git import Vue, { VNode, CreateElement } from "vue"; -export declare class Message { +export declare class Message extends Vue { /** * 消息 * @param config MessageConfig为相关配置,string为待显示的内容 diff --git a/types/modal.d.ts b/types/modal.d.ts index f141237..f26ec96 100644 --- a/types/modal.d.ts +++ b/types/modal.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/yangdan8/iview.git import Vue, { VNode, CreateElement } from "vue"; -export declare class Modal { +export declare class Modal extends Vue { /** * 对话框是否显示,可使用 v-model 双向绑定数据。 * @default false @@ -128,7 +128,7 @@ export declare class Modal { }; } -export declare class ModalInstance { +export declare class ModalInstance extends Modal { /** * 消息 * @param config ModalConfig为相关配置,string为待显示的内容 diff --git a/types/notice.d.ts b/types/notice.d.ts index 1210090..b1c4f93 100644 --- a/types/notice.d.ts +++ b/types/notice.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/yangdan8/iview.git import Vue, { VNode, CreateElement } from "vue"; -export declare class Notice { +export declare class Notice extends Vue { /** * 打开 * @param config NoticeConfig为相关配置,string为待显示的内容 -- libgit2 0.21.4