56 lines
1.0 KiB
Vue
56 lines
1.0 KiB
Vue
<!-- <template>
|
|
<div :class="wrpCls">
|
|
<avatar-dropdown :menu="showMenu" :current-user="currentUser" :class="prefixCls" />
|
|
</div>
|
|
</template>
|
|
|
|
<script >
|
|
import AvatarDropdown from './AvatarDropdown'
|
|
// import store from '@/store'
|
|
|
|
export default {
|
|
name: 'RightContent',
|
|
components: {
|
|
AvatarDropdown
|
|
},
|
|
props: {
|
|
prefixCls: {
|
|
type: String,
|
|
default: 'ant-pro-global-header-index-action'
|
|
},
|
|
isMobile: {
|
|
type: Boolean,
|
|
default: () => false
|
|
},
|
|
topMenu: {
|
|
type: Boolean,
|
|
required: true
|
|
},
|
|
theme: {
|
|
type: String,
|
|
required: true
|
|
}
|
|
},
|
|
data () {
|
|
return {
|
|
showMenu: true,
|
|
currentUser: {}
|
|
}
|
|
},
|
|
computed: {
|
|
wrpCls () {
|
|
return {
|
|
'ant-pro-global-header-index-right': true,
|
|
[`ant-pro-global-header-index-${(this.isMobile || !this.topMenu) ? 'light' : this.theme}`]: true
|
|
}
|
|
}
|
|
},
|
|
mounted () {
|
|
// console.log(store)
|
|
this.currentUser = {
|
|
name: 'dd'
|
|
}
|
|
}
|
|
}
|
|
</script> -->
|