|
@@ -11,6 +11,7 @@
|
|
<el-tag v-if="item.sourceType == 2" effect="light" :closable="ipDeletable" @close="handleDeleteIp(item)"
|
|
<el-tag v-if="item.sourceType == 2" effect="light" :closable="ipDeletable" @close="handleDeleteIp(item)"
|
|
color="#f4f4f4" round class="ml-1 cursor-pointer" style="margin-bottom: 4px;">
|
|
color="#f4f4f4" round class="ml-1 cursor-pointer" style="margin-bottom: 4px;">
|
|
{{ item.startIp }}{{ item.ipMode == 2 && item.endIp ? (' / ' + item.endIp.split('.').pop()) : '' }}
|
|
{{ item.startIp }}{{ item.ipMode == 2 && item.endIp ? (' / ' + item.endIp.split('.').pop()) : '' }}
|
|
|
|
+ <span class="ellipsis">{{ item.startIp }}{{ item.ipMode == 2 && item.endIp ? (' / ' + item.endIp.split('.').pop()) : '' }}</span>
|
|
</el-tag>
|
|
</el-tag>
|
|
<el-popover v-else width="200" trigger="hover" placement="top" @show="onLoadDetail(item)">
|
|
<el-popover v-else width="200" trigger="hover" placement="top" @show="onLoadDetail(item)">
|
|
<div v-if="item.list.length > 0" class="flex flex-wrap break-all">
|
|
<div v-if="item.list.length > 0" class="flex flex-wrap break-all">
|
|
@@ -20,7 +21,7 @@
|
|
<template #reference>
|
|
<template #reference>
|
|
<el-tag effect="light" :closable="ipDeletable" @close="handleDeleteIp(item)" color="#f4f4f4" round
|
|
<el-tag effect="light" :closable="ipDeletable" @close="handleDeleteIp(item)" color="#f4f4f4" round
|
|
class="ml-1 cursor-pointer" style="margin-bottom: 4px;">
|
|
class="ml-1 cursor-pointer" style="margin-bottom: 4px;">
|
|
- {{ item.groupName.length > 30 ? item.groupName.substring(0, 30) + '...' : item.groupName }}
|
|
|
|
|
|
+ <span class="ellipsis">{{ item.groupName.length > 30 ? item.groupName.substring(0, 30) + '...' : item.groupName }}</span>
|
|
</el-tag>
|
|
</el-tag>
|
|
</template>
|
|
</template>
|
|
</el-popover>
|
|
</el-popover>
|
|
@@ -181,4 +182,13 @@ const addIp = (data: IpItem[], sourceType: 1 | 2, ipType: '1' | '2') => {
|
|
.el-collapse-item__content {
|
|
.el-collapse-item__content {
|
|
padding: 0;
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
+.ellipsis {
|
|
|
|
+ max-width: 780px;
|
|
|
|
+ display: -webkit-box; /* 使用弹性盒子布局 */
|
|
|
|
+ -webkit-box-orient: vertical; /* 垂直方向排列 */
|
|
|
|
+ -webkit-line-clamp: 1; /* 限制显示的行数 */
|
|
|
|
+ overflow: hidden; /* 隐藏超出部分 */
|
|
|
|
+ text-overflow: ellipsis; /* 超出时显示省略号 */
|
|
|
|
+ word-break: break-word; /* 允许单词断行(可选) */
|
|
|
|
+}
|
|
</style>
|
|
</style>
|