diff --git a/src/components/NameCircle.vue b/src/components/NameCircle.vue index ce06bb4..eb79bbc 100644 --- a/src/components/NameCircle.vue +++ b/src/components/NameCircle.vue @@ -15,7 +15,7 @@
{{user.operationTime}}
- +
diff --git a/src/components/Tooltip.vue b/src/components/Tooltip.vue index b06b081..2cddc67 100644 --- a/src/components/Tooltip.vue +++ b/src/components/Tooltip.vue @@ -5,7 +5,7 @@ placement="bottom-start" :disabled="isShow" > -
+
{{ props.content }} @@ -20,6 +20,9 @@ const props = defineProps({ }, width: { type: String, default: '' + }, lines: { + type: Boolean, + default: false } }) const contentRef = ref() @@ -36,4 +39,11 @@ const isShowTooltip = () => { white-space: nowrap; overflow: hidden; } +.content-lines{ + overflow:hidden; + text-overflow: ellipsis; + -webkit-line-clamp: 2; + display: -webkit-box; + -webkit-box-orient: vertical; +}