fix: add height

This commit is contained in:
Fine 2023-02-04 15:37:24 +08:00
parent d2e3f7aec2
commit 4124c568b0
2 changed files with 2 additions and 9 deletions

View File

@ -24,7 +24,7 @@ limitations under the License. -->
</el-tooltip>
</div>
</div>
<div class="widget-chart" :class="config.graph.type.includes('List') ? 'list' : 'chart'">
<div class="widget-chart" :style="{ height: config.height + 'px' }">
<component
:is="graph.type"
:intervalTime="appStoreWithOut.intervalTime"
@ -166,14 +166,6 @@ limitations under the License. -->
width: 100%;
}
.list {
min-height: 400px;
}
.chart {
height: 450px;
}
.no-data {
font-size: 14px;
text-align: center;

View File

@ -95,6 +95,7 @@ limitations under the License. -->
metrics: dashboardStore.selectedGrid.metrics,
metricTypes: dashboardStore.selectedGrid.metricTypes,
metricConfig: metricConfig,
height: dashboardStore.selectedGrid.h * 20,
});
const path = `/page/${dashboardStore.layerId}/${dashboardStore.entity}/${serviceId}/${podId}/${processId}/${destServiceId}/${destPodId}/${destProcessId}/${config}`;
widgetLink.value = hasDuration.value ? `${path}/${duration}` : path;