Skip to content

Commit ccfa8ec

Browse files
committed
fix: rightContent render #779
1 parent 3b11bdf commit ccfa8ec

File tree

5 files changed

+25
-15
lines changed

5 files changed

+25
-15
lines changed

β€Žpackage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"lint:nofix": "vue-cli-service lint --no-fix"
1212
},
1313
"dependencies": {
14-
"@ant-design-vue/pro-layout": "^0.2.9",
14+
"@ant-design-vue/pro-layout": "^0.2.10",
1515
"@antv/data-set": "^0.10.2",
16-
"ant-design-vue": "1.5.5",
16+
"ant-design-vue": "1.6.0",
1717
"axios": "^0.19.0",
1818
"core-js": "^3.1.2",
1919
"enquire.js": "^2.1.6",

β€Žsrc/components/GlobalHeader/RightContent.vue

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<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" />
55
</div>
66
</template>
77

@@ -16,6 +16,14 @@ export default {
1616
SelectLang
1717
},
1818
props: {
19+
prefixCls: {
20+
type: String,
21+
default: 'ant-pro-global-header-index-action'
22+
},
23+
isMobile: {
24+
type: Boolean,
25+
default: () => false
26+
},
1927
topMenu: {
2028
type: Boolean,
2129
required: true
@@ -26,7 +34,6 @@ export default {
2634
}
2735
},
2836
data () {
29-
this.actionClassName = 'ant-pro-global-header-index-action'
3037
return {
3138
showMenu: true,
3239
currentUser: {}
@@ -36,7 +43,7 @@ export default {
3643
wrpCls () {
3744
return {
3845
'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
4047
}
4148
}
4249
},

β€Žsrc/layouts/BasicLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export default {
108108
this.isMobile = true
109109
this.collapsed = false
110110
this.settings.contentWidth = false
111-
this.settings.fixSiderbar = false
111+
// this.settings.fixSiderbar = false
112112
}
113113
},
114114
handleCollapse (val) {

β€Žsrc/locales/lang/en-US.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ const locale = {
1515
'menu.dashboard.monitor': 'Monitor',
1616
'menu.dashboard.workplace': 'Workplace',
1717

18+
'layouts.usermenu.dialog.title': 'Message',
19+
'layouts.usermenu.dialog.content': 'Do you really log-out.',
20+
1821
'app.setting.pagestyle': 'Page style setting',
1922
'app.setting.pagestyle.light': 'Light style',
2023
'app.setting.pagestyle.dark': 'Dark style',

β€Žyarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# yarn lockfile v1
33

44

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=
99
dependencies:
1010
ant-design-vue "^1.5.3"
1111
classnames "^2.2.6"
@@ -1981,10 +1981,10 @@ ansi-styles@^4.0.0, ansi-styles@^4.1.0:
19811981
"@types/color-name" "^1.1.1"
19821982
color-convert "^2.0.1"
19831983

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=
19881988
dependencies:
19891989
"@ant-design/icons" "^2.1.1"
19901990
"@ant-design/icons-vue" "^2.0.0"

0 commit comments

Comments
Β (0)