File tree Expand file tree Collapse file tree 1 file changed +21
-6
lines changed
Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change 131131 </el-table-column >
132132 <el-table-column prop =" operate" :label =" $t('views.operateLog.table.operate.detail')" >
133133 <template #default =" { row } " >
134- {{
135- row.operate +
136- (row.operation_object && row.operation_object.name
137- ? `【${row.operation_object.name}】`
138- : '')
139- }}
134+ <el-tooltip
135+ :content ="
136+ row.operate + (row.operation_object?.name ? `【${row.operation_object.name}】` : '')
137+ "
138+ effect =" dark"
139+ placement =" top"
140+ >
141+ <span class =" text-ellipsis" >
142+ {{
143+ row.operate +
144+ (row.operation_object?.name ? `【${row.operation_object.name}】` : '')
145+ }}
146+ </span >
147+ </el-tooltip >
140148 </template >
141149 </el-table-column >
142150 <el-table-column
@@ -342,4 +350,11 @@ onMounted(() => {
342350.text-button {
343351 font-size : 14px ;
344352}
353+ .text-ellipsis {
354+ white-space : nowrap ;
355+ overflow : hidden ;
356+ text-overflow : ellipsis ;
357+ max-width : 100% ;
358+ display : block ;
359+ }
345360 </style >
You can’t perform that action at this time.
0 commit comments