no message

This commit is contained in:
kuaifan 2022-03-23 15:27:37 +08:00
parent acac93bbd1
commit 534ed6ae6c
2 changed files with 9 additions and 5 deletions

View File

@ -15,10 +15,11 @@
<UserAvatar :userid="projectData.owner_userid" :size="36" :borderWitdh="2" :openDelay="0">
<p>{{$L('项目负责人')}}</p>
</UserAvatar>
<Badge v-if="windowWidth <= 980 && projectUser.length > 0" type="normal" :count="projectData.project_user.length"/>
</li>
<template v-if="windowWidth > 980 && projectUser.length > 0" v-for="item in projectUser">
<li v-if="item.userid === -1" class="more">
<ETooltip :content="$L('共' + (item.count + 1) + '个成员')">
<ETooltip :content="$L('共' + (projectData.project_user.length) + '个成员')">
<Icon type="ios-more"/>
</ETooltip>
</li>
@ -636,10 +637,7 @@ export default {
return list
}
let array = list.slice(0, max - 1);
array.push({
userid: -1,
count: list.length
})
array.push({userid: -1})
array.push(list[list.length - 1])
return array;
},

View File

@ -74,6 +74,12 @@
list-style: none;
margin-left: -6px;
transition: transform 0.2s;
.ivu-badge {
position: absolute;
top: -5px;
left: 23px;
transform: scale(0.8);
}
&:hover {
transform: scale(1.05);
}