File tree Expand file tree Collapse file tree 5 files changed +25
-15
lines changed Expand file tree Collapse file tree 5 files changed +25
-15
lines changed Original file line number Diff line number Diff line change 11
11
"lint:nofix" : " vue-cli-service lint --no-fix"
12
12
},
13
13
"dependencies" : {
14
- "@ant-design-vue/pro-layout" : " ^0.2.9 " ,
14
+ "@ant-design-vue/pro-layout" : " ^0.2.10 " ,
15
15
"@antv/data-set" : " ^0.10.2" ,
16
- "ant-design-vue" : " 1.5.5 " ,
16
+ "ant-design-vue" : " 1.6.0 " ,
17
17
"axios" : " ^0.19.0" ,
18
18
"core-js" : " ^3.1.2" ,
19
19
"enquire.js" : " ^2.1.6" ,
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div :class =" wrpCls" >
3
- <avatar-dropdown :menu =" showMenu" :current-user =" currentUser" :class =" actionClassName " />
4
- <select-lang :class =" actionClassName " />
3
+ <avatar-dropdown :menu =" showMenu" :current-user =" currentUser" :class =" prefixCls " />
4
+ <select-lang :class =" prefixCls " />
5
5
</div >
6
6
</template >
7
7
@@ -16,6 +16,14 @@ export default {
16
16
SelectLang
17
17
},
18
18
props: {
19
+ prefixCls: {
20
+ type: String ,
21
+ default: ' ant-pro-global-header-index-action'
22
+ },
23
+ isMobile: {
24
+ type: Boolean ,
25
+ default : () => false
26
+ },
19
27
topMenu: {
20
28
type: Boolean ,
21
29
required: true
@@ -26,7 +34,6 @@ export default {
26
34
}
27
35
},
28
36
data () {
29
- this .actionClassName = ' ant-pro-global-header-index-action'
30
37
return {
31
38
showMenu: true ,
32
39
currentUser: {}
@@ -36,7 +43,7 @@ export default {
36
43
wrpCls () {
37
44
return {
38
45
' ant-pro-global-header-index-right' : true ,
39
- [` ant-pro-global-header-index-${ this .topMenu && this .theme || ' light' } ` ]: true
46
+ [` ant-pro-global-header-index-${ ( this .topMenu && this . isMobile ) && this .theme || ' light' } ` ]: true
40
47
}
41
48
}
42
49
},
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export default {
108
108
this .isMobile = true
109
109
this .collapsed = false
110
110
this .settings .contentWidth = false
111
- this .settings .fixSiderbar = false
111
+ // this.settings.fixSiderbar = false
112
112
}
113
113
},
114
114
handleCollapse (val ) {
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ const locale = {
15
15
'menu.dashboard.monitor' : 'Monitor' ,
16
16
'menu.dashboard.workplace' : 'Workplace' ,
17
17
18
+ 'layouts.usermenu.dialog.title' : 'Message' ,
19
+ 'layouts.usermenu.dialog.content' : 'Do you really log-out.' ,
20
+
18
21
'app.setting.pagestyle' : 'Page style setting' ,
19
22
'app.setting.pagestyle.light' : 'Light style' ,
20
23
'app.setting.pagestyle.dark' : 'Dark style' ,
Original file line number Diff line number Diff line change 2
2
# yarn lockfile v1
3
3
4
4
5
- " @ant-design-vue/pro-layout@^0.2.9 " :
6
- version "0.2.9 "
7
- resolved "https://registry.npm.taobao.org/@ant-design-vue/pro-layout/download/@ant-design-vue/pro-layout-0.2.9 .tgz?cache=0&sync_timestamp=1589537984599&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40ant-design-vue%2Fpro-layout%2Fdownload%2F%40ant-design-vue%2Fpro-layout-0.2.9.tgz#eb6d439322fe50ff0add454bf24eab6342f92e75 "
8
- integrity sha1-621DkyL+UP8K3UVL8k6rY0L5LnU =
5
+ " @ant-design-vue/pro-layout@^0.2.10 " :
6
+ version "0.2.10 "
7
+ resolved "https://registry.npm.taobao.org/@ant-design-vue/pro-layout/download/@ant-design-vue/pro-layout-0.2.10 .tgz#f27c958480997d7cc780c051e887bd33008d97fa "
8
+ integrity sha1-8nyVhICZfXzHgMBR6Ie9MwCNl/o =
9
9
dependencies :
10
10
ant-design-vue "^1.5.3"
11
11
classnames "^2.2.6"
@@ -1981,10 +1981,10 @@ ansi-styles@^4.0.0, ansi-styles@^4.1.0:
1981
1981
" @types/color-name" " ^1.1.1"
1982
1982
color-convert "^2.0.1"
1983
1983
1984
- ant-design-vue@1.5.5 :
1985
- version "1.5.5 "
1986
- resolved "https://registry.npm.taobao.org/ant-design-vue/download/ant-design-vue-1.5.5 .tgz#11e5fabedfb6f51ccedb3f7b1650d5f388157eb3 "
1987
- integrity sha1-EeX6vt+29RzO2z97FlDV84gVfrM =
1984
+ ant-design-vue@1.6.0 :
1985
+ version "1.6.0 "
1986
+ resolved "https://registry.npm.taobao.org/ant-design-vue/download/ant-design-vue-1.6.0 .tgz?cache=0&sync_timestamp=1589552419910&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fant-design-vue%2Fdownload%2Fant-design-vue-1.6.0.tgz#673e09e3ac56feb14154a711e52357fb7518cc32 "
1987
+ integrity sha1-Zz4J46xW/rFBVKcR5SNX+3UYzDI =
1988
1988
dependencies :
1989
1989
" @ant-design/icons" " ^2.1.1"
1990
1990
" @ant-design/icons-vue" " ^2.0.0"
You canβt perform that action at this time.
0 commit comments