File tree Expand file tree Collapse file tree 3 files changed +54
-0
lines changed Expand file tree Collapse file tree 3 files changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * @file : 声明vue拓展原型链上的属性类型
3
+ * @copyright : NanJing Anshare Tech .Com
4
+ * @author : BoBo
5
+ * @Date : 2020年06月23 16:47:06
6
+ */
7
+ /* eslint-disable */
8
+ import VueRouter , { Route } from 'vue-router' ;
9
+
10
+ import { Store } from 'vuex' ;
11
+
12
+ // 扩充
13
+ declare module 'vue/types/vue' {
14
+ interface Vue {
15
+ $router : VueRouter ;
16
+ $route : Route ;
17
+ $store : Store < any > ;
18
+ lodash : any ;
19
+ axios : any ;
20
+ dayjs : any ;
21
+ $pinyinmatch : any ;
22
+ HOST_URL : any ;
23
+ API_URL : any ;
24
+ }
25
+ }
26
+
27
+ declare global {
28
+ interface Window {
29
+ __HOST__URL__ : string ;
30
+ __PREFIX__URL__ : string ;
31
+ }
32
+ }
33
+
Original file line number Diff line number Diff line change
1
+ /*
2
+ * @file : 让ts识别vue文件,声明第三方模块
3
+ * @copyright : NanJing Anshare Tech .Com
4
+ * @author : BoBo
5
+ * @Date : 2020年06月22 16:26:22
6
+ */
7
+ declare module '*.vue' {
8
+ import Vue from 'vue' ;
9
+
10
+ export default Vue ;
11
+ }
Original file line number Diff line number Diff line change
1
+ interface SystemConfig {
2
+ passwordLength : string ,
3
+ clientTimeOut : string ,
4
+ initialPassword : string ,
5
+ systemName : string ,
6
+ }
7
+
8
+ interface SideBarState {
9
+ opened : 1 | 0
10
+ }
You can’t perform that action at this time.
0 commit comments