From bd8374ae9177d0a649854ade7d355af83df462b7 Mon Sep 17 00:00:00 2001 From: yangd Date: Mon, 3 Sep 2018 14:00:01 +0800 Subject: [PATCH] 将部分全局$打头的属性或组件改为非空类型以方便开发使用 --- types/iview.components.d.ts | 2 +- types/loading-bar.d.ts | 2 +- types/message.d.ts | 2 +- types/modal.d.ts | 2 +- types/notice.d.ts | 2 +- types/spin.d.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/types/iview.components.d.ts b/types/iview.components.d.ts index fbe6e41..1f155e3 100644 --- a/types/iview.components.d.ts +++ b/types/iview.components.d.ts @@ -83,7 +83,7 @@ export default API; declare module 'vue/types/vue' { interface Vue { - $IVIEW?: { + $IVIEW: { size?: string; transfer?: string; }; diff --git a/types/loading-bar.d.ts b/types/loading-bar.d.ts index 9913398..d25c4f1 100644 --- a/types/loading-bar.d.ts +++ b/types/loading-bar.d.ts @@ -56,6 +56,6 @@ declare module 'vue/types/vue' { /** * 加载进度条 */ - $Loading?: LoadingBar; + $Loading: LoadingBar; } } \ No newline at end of file diff --git a/types/message.d.ts b/types/message.d.ts index 6ecabb7..7373913 100644 --- a/types/message.d.ts +++ b/types/message.d.ts @@ -76,7 +76,7 @@ declare module 'vue/types/vue' { /** * 全局提示 */ - $Message?: Message; + $Message: Message; } } diff --git a/types/modal.d.ts b/types/modal.d.ts index 2a015f6..d507d8d 100644 --- a/types/modal.d.ts +++ b/types/modal.d.ts @@ -218,6 +218,6 @@ declare module 'vue/types/vue' { /** * 对话框 */ - $Modal?: ModalInstance; + $Modal: ModalInstance; } } \ No newline at end of file diff --git a/types/notice.d.ts b/types/notice.d.ts index 60f0aa8..e40324e 100644 --- a/types/notice.d.ts +++ b/types/notice.d.ts @@ -87,6 +87,6 @@ declare module 'vue/types/vue' { /** * 通知提醒 */ - $Notice?: Notice; + $Notice: Notice; } } \ No newline at end of file diff --git a/types/spin.d.ts b/types/spin.d.ts index 14b7dd4..d363bb8 100644 --- a/types/spin.d.ts +++ b/types/spin.d.ts @@ -30,6 +30,6 @@ declare module 'vue/types/vue' { /** * */ - $Spin?: Spin; + $Spin: Spin; } } \ No newline at end of file -- libgit2 0.21.4