fix : 主次账号消息框展示、审批记录优化、头像框组件优化

This commit is contained in:
2024-06-21 18:35:30 +08:00
parent 2a80c8df21
commit 1cdd2cb02b
6 changed files with 48 additions and 30 deletions

View File

@@ -3,7 +3,7 @@
<slot name="pre"></slot>
<div class="user-audit">
<div class="circle-user">
<Tooltip :content="user.name" placement="bottom-start" width="45"/>
<Tooltip :content="user.name" placement="bottom-start" width="45px"/>
<div v-if="user.icon"
class="el-timeline-item__node" :style="{
backgroundColor: user.color

View File

@@ -5,7 +5,7 @@
placement="bottom-start"
:disabled="isShow"
>
<div :class="lines?'content-lines':'content'" :style="{width: props.width+'px'}" @mouseover="isShowTooltip">
<div :class="lines?'content-lines':'content'" :style="{width: props.width}" @mouseover="isShowTooltip">
<span ref="contentRef">
<slot name="content">{{ props.content }}</slot>
</span>
@@ -17,10 +17,12 @@ const props = defineProps({
content: {
type: String,
default: ''
}, width: {
},
width: {
type: String,
default: ''
}, lines: {
default: '100%'
},
lines: {
type: Boolean,
default: false
}
@@ -40,6 +42,7 @@ const isShowTooltip = () => {
overflow: hidden;
}
.content-lines{
word-break:break-all;
overflow:hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;