conversation-profile.vue
1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<template>
<div class="conversation-profile-wrapper">
<user-profile
v-if="currentConversation.type === TIM.TYPES.CONV_C2C"
:userProfile="currentConversation.userProfile"
/>
<group-profile
v-else-if="currentConversation.type === TIM.TYPES.CONV_GROUP"
:groupProfile="currentConversation.groupProfile"
/>
</div>
</template>
<script>
import { mapState } from 'vuex'
import GroupProfile from './conversationProfile/group-profile.vue'
import UserProfile from './conversationProfile/user-profile.vue'
export default {
name: 'ConversationProfile',
components: {
GroupProfile,
UserProfile
},
data() {
return {}
},
computed: {
...mapState({
currentConversation: state => state.conversation.currentConversation
})
}
}
</script>
<style lang="stylus" scoped>
.conversation-profile-wrapper
background-color $white
height 100%
overflow-y scroll
/* 设置滚动条的样式 */
::-webkit-scrollbar {
width: 0px;
height: 0px;
}
</style>