Commit c42680bfe8450affe0fc4d011aa1b5ee50c0e08d
1 parent
f0891c46
v1.9 优化导入详情鼠标放上去不显示错误问题
Showing
1 changed file
with
15 additions
and
3 deletions
src/views/system/assetImportLogDetailList.vue
| ... | ... | @@ -50,9 +50,11 @@ |
| 50 | 50 | </el-table-column> |
| 51 | 51 | <el-table-column :label="$t('assetImportLogDetail.description')" align="center"> |
| 52 | 52 | <template slot-scope="scope"> |
| 53 | - <div class="textAuto" style="max-width: 200px;"> | |
| 54 | - {{ scope.row.message }} | |
| 55 | - </div> | |
| 53 | + <el-tooltip :content="scope.row.message" placement="top" :disabled="!scope.row.message || scope.row.message.length <= 20" popper-class="custom-tooltip"> | |
| 54 | + <div class="textAuto" style="max-width: 200px;"> | |
| 55 | + {{ scope.row.message }} | |
| 56 | + </div> | |
| 57 | + </el-tooltip> | |
| 56 | 58 | </template> |
| 57 | 59 | </el-table-column> |
| 58 | 60 | </el-table> |
| ... | ... | @@ -210,4 +212,14 @@ export default { |
| 210 | 212 | margin-top: 15px; |
| 211 | 213 | text-align: right; |
| 212 | 214 | } |
| 215 | + | |
| 216 | +/* 自定义 tooltip 样式 */ | |
| 217 | +</style> | |
| 218 | + | |
| 219 | +<style> | |
| 220 | +.custom-tooltip { | |
| 221 | + max-width: 600px !important; | |
| 222 | + word-wrap: break-word !important; | |
| 223 | + word-break: break-all !important; | |
| 224 | +} | |
| 213 | 225 | </style> |
| 214 | 226 | \ No newline at end of file | ... | ... |