返回结果

This commit is contained in:
caozehui
2025-01-07 14:54:44 +08:00
parent ba0c577514
commit 689cc39bbc
3 changed files with 162 additions and 110 deletions

View File

@@ -40,7 +40,9 @@
:props="defaultProps"
@node-click="handleNodeClick" class="custom-tree" ref="treeRef">
<template #default="{ node, data }">
<span class="custom-tree-node" :style="data.fly===2? 'color: red;':''">{{ data.scriptTypeName }}</span>
<el-tooltip effect="dark" :content="data.scriptTypeName" placement="top">
<span class="custom-tree-node" :style="data.fly===2? 'color: red;':''">{{ data.scriptTypeName }}</span>
</el-tooltip>
</template>
</el-tree>
</div>
@@ -579,9 +581,9 @@ defineExpose({
margin-top: 10px;
.custom-tree-node {
overflow-x: hidden !important; // 溢出部分隐藏
white-space: nowrap !important; //禁止自动换行
text-overflow: ellipsis !important; // 使溢出部分以省略号显示
overflow-x: hidden !important;
white-space: nowrap !important;
text-overflow: ellipsis !important;
}
}
}