You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.0 KiB

<template>
<div class="item" :class="active ? 'active' : ''">
<div class="avatar">
<head-image :url="group.headImage"> </head-image>
</div>
<div class="text">
<div>{{group.remark}}</div>
</div>
</div>
</template>
<script>
import HeadImage from '../common/HeadImage.vue';
export default {
name: "groupItem",
components: {
HeadImage
},
data() {
return {}
},
props: {
group: {
type: Object
},
active: {
type: Boolean
}
}
}
</script>
<style lang="scss" >
.item {
height: 65px;
display: flex;
margin-bottom: 1px;
position: relative;
padding-left: 15px;
align-items: center;
padding-right: 5px;
background-color: #fafafa;
&:hover {
background-color: #eeeeee;
}
&.active {
background-color: #dddddd;
}
.avatar {
width: 45px;
height: 45px;
}
.text {
display: flex;
flex-direction: column;
justify-content: space-around;
flex: 1;
margin-left: 15px;
height: 100%;
flex-shrink: 0;
overflow: hidden;
text-align: left;
}
}
</style>