源码 j、源码 j-step-c10
首先我们在renderer目录下创建components文件夹,在components文件夹下创建ChatList.vue。
- components/ChatList.vue
hm
小白
Joe
自在
#chat-list {
display: flex;
flex-direction: column;
}
#item-wrap {
overflow-y: auto;
}
.item {
display: flex;
flex-direction: column;
justify-content: center;
height: 44px;
border-bottom: 1px solid #ddd;
cursor: pointer;
}
.item:hover {
background-color: #eaeaea;
}
.item-1 {
color: #67c23a;
background-color: #f0f9eb;
}
.item-2 {
color: #999;
background-color: #fff;
}
- views/Chat.vue



