Commit c42680bfe8450affe0fc4d011aa1b5ee50c0e08d

Authored by wuxw
1 parent f0891c46

v1.9 优化导入详情鼠标放上去不显示错误问题

src/views/system/assetImportLogDetailList.vue
@@ -50,9 +50,11 @@ @@ -50,9 +50,11 @@
50 </el-table-column> 50 </el-table-column>
51 <el-table-column :label="$t('assetImportLogDetail.description')" align="center"> 51 <el-table-column :label="$t('assetImportLogDetail.description')" align="center">
52 <template slot-scope="scope"> 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 </template> 58 </template>
57 </el-table-column> 59 </el-table-column>
58 </el-table> 60 </el-table>
@@ -210,4 +212,14 @@ export default { @@ -210,4 +212,14 @@ export default {
210 margin-top: 15px; 212 margin-top: 15px;
211 text-align: right; 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 </style> 225 </style>
214 \ No newline at end of file 226 \ No newline at end of file