diff --git a/src/component/rain-earthquake/DisasterChainPointComponent.vue b/src/component/rain-earthquake/DisasterChainPointComponent.vue index 670a27a..b344da6 100644 --- a/src/component/rain-earthquake/DisasterChainPointComponent.vue +++ b/src/component/rain-earthquake/DisasterChainPointComponent.vue @@ -307,16 +307,15 @@ cursor: pointer; transition: background-color 0.3s ease; } - /* 名称列样式:一行显示,超出隐藏 */ - :deep(.el-table .el-table__row td:first-child .cell) { + /* 所有列样式:一行显示,超出隐藏 */ + :deep(.el-table .el-table__row td .cell) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; - cursor: pointer; } - /* 鼠标悬浮时显示完整名称 */ - :deep(.el-table .el-table__row td:first-child:hover .cell) { + /* 鼠标悬浮时显示完整内容 */ + :deep(.el-table .el-table__row:hover td .cell) { white-space: normal; overflow: visible; text-overflow: unset;