This commit is contained in:
bb_pan 2026-01-29 10:04:49 +08:00
parent 2fc887e199
commit 886272123d
1 changed files with 30 additions and 2 deletions

View File

@ -18,7 +18,20 @@
<tbody>
<tr v-for="(row, index) in tableData" :key="index" class="row-sty" :style="rowStyle(index)">
<td class="index-num" style="width: 50px" :style="indexStyle(index)">NO0{{ index + 1 }}</td>
<td style="width: 180px; font-size: 14px">{{ row.name }}</td>
<!-- <td style="width: 180px; font-size: 14px">{{ row.name }}</td> -->
<td style="width: 180px">
<el-tooltip
effect="dark"
:content="row.name"
placement="top"
:disabled="!row.name || row.name.length <= 10"
>
<div class="name-cell">
<span class="ellipsis">{{ row.name }}</span>
</div>
</el-tooltip>
</td>
<td class="num">{{ row.proportion }}%</td>
<td>
<span class="num">{{ row.turnoverRate }}</span> <span style="font-size: 14px">/</span></td
@ -42,7 +55,7 @@ export default {
name: 'Bottom1-2',
components: {
TitleBox,
UsageRateMore
UsageRateMore,
},
data() {
return {
@ -121,6 +134,21 @@ export default {
margin-bottom: 7px;
border-radius: 5px;
}
.name-cell {
height: 100%;
display: flex;
align-items: center; //
justify-content: center; //
}
.ellipsis {
max-width: 180px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 14px;
}
table {
border-collapse: separate;
border-spacing: 0 7px;