Remove graph subtext and move to footer
This commit is contained in:
@@ -21,6 +21,7 @@ let yscaleUnit = null;
|
||||
const props = defineProps({
|
||||
title: String,
|
||||
subtext: String,
|
||||
footer: String,
|
||||
period: Object, // { hours, format, tooltpFormat }
|
||||
yscale: String, // cpu, memory
|
||||
memory: Number,
|
||||
@@ -307,6 +308,7 @@ defineExpose({
|
||||
<canvas ref="graphNode"></canvas>
|
||||
<div ref="tooltipElem" class="graphs-tooltip"></div>
|
||||
</div>
|
||||
<div class="footer">{{ footer }}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -322,6 +324,11 @@ defineExpose({
|
||||
height: 160px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user