mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-02 06:14:01 +00:00
feat: enhance graph legend for the single metric (#182)
This commit is contained in:
parent
b37d65eaac
commit
a0fc879eb1
@ -21,7 +21,27 @@ limitations under the License. -->
|
|||||||
:style="`width: ${width}; maxHeight:${isRight ? '100%' : 130}`"
|
:style="`width: ${width}; maxHeight:${isRight ? '100%' : 130}`"
|
||||||
class="scroll_bar_style"
|
class="scroll_bar_style"
|
||||||
>
|
>
|
||||||
<table>
|
<table v-if="tableData.length === 1">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th v-show="headerRow.length"></th>
|
||||||
|
<th>
|
||||||
|
{{ tableData[0].name }}
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr v-for="h in headerRow" :key="h.value">
|
||||||
|
<th>
|
||||||
|
{{ h.label }}
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
{{ tableData[0][h.value] }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<table v-else>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
@ -125,6 +145,7 @@ table thead th {
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
width: 25vw;
|
width: 25vw;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
@ -133,7 +154,6 @@ table thead th {
|
|||||||
|
|
||||||
table td {
|
table td {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
table thead th:first-child {
|
table thead th:first-child {
|
||||||
@ -144,7 +164,7 @@ table thead th:first-child {
|
|||||||
|
|
||||||
table tbody th {
|
table tbody th {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-style: italic;
|
font-style: normal;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
|
Loading…
Reference in New Issue
Block a user