Commit bd8374ae9177d0a649854ade7d355af83df462b7

Authored by yangd
1 parent d6282db6

将部分全局$打头的属性或组件改为非空类型以方便开发使用

types/iview.components.d.ts
... ... @@ -83,7 +83,7 @@ export default API;
83 83  
84 84 declare module 'vue/types/vue' {
85 85 interface Vue {
86   - $IVIEW?: {
  86 + $IVIEW: {
87 87 size?: string;
88 88 transfer?: string;
89 89 };
... ...
types/loading-bar.d.ts
... ... @@ -56,6 +56,6 @@ declare module 'vue/types/vue' {
56 56 /**
57 57 * 加载进度条
58 58 */
59   - $Loading?: LoadingBar;
  59 + $Loading: LoadingBar;
60 60 }
61 61 }
62 62 \ No newline at end of file
... ...
types/message.d.ts
... ... @@ -76,7 +76,7 @@ declare module 'vue/types/vue' {
76 76 /**
77 77 * 全局提示
78 78 */
79   - $Message?: Message;
  79 + $Message: Message;
80 80 }
81 81 }
82 82  
... ...
types/modal.d.ts
... ... @@ -218,6 +218,6 @@ declare module 'vue/types/vue' {
218 218 /**
219 219 * 对话框
220 220 */
221   - $Modal?: ModalInstance;
  221 + $Modal: ModalInstance;
222 222 }
223 223 }
224 224 \ No newline at end of file
... ...
types/notice.d.ts
... ... @@ -87,6 +87,6 @@ declare module 'vue/types/vue' {
87 87 /**
88 88 * 通知提醒
89 89 */
90   - $Notice?: Notice;
  90 + $Notice: Notice;
91 91 }
92 92 }
93 93 \ No newline at end of file
... ...
types/spin.d.ts
... ... @@ -30,6 +30,6 @@ declare module 'vue/types/vue' {
30 30 /**
31 31 *
32 32 */
33   - $Spin?: Spin;
  33 + $Spin: Spin;
34 34 }
35 35 }
36 36 \ No newline at end of file
... ...