style(测试计划): 修复测试计划报告执行历史高度展示错误
This commit is contained in:
parent
27d8d1ac47
commit
71c7493e88
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<a-spin :loading="loading" class="w-full">
|
<a-spin :loading="loading" class="w-full">
|
||||||
<div class="execute-history-list">
|
<div :class="`${props.height || 'h-full'} execute-history-list`">
|
||||||
<div v-for="item of props.executeList" :key="item.status" class="execute-history-list-item">
|
<div v-for="item of props.executeList" :key="item.status" class="execute-history-list-item">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<MsAvatar :avatar="item.userLogo" />
|
<MsAvatar :avatar="item.userLogo" />
|
||||||
|
@ -68,6 +68,7 @@
|
||||||
executeList: ExecuteHistoryItem[];
|
executeList: ExecuteHistoryItem[];
|
||||||
loading: boolean;
|
loading: boolean;
|
||||||
showStepResult?: boolean; // 是否展示执行步骤
|
showStepResult?: boolean; // 是否展示执行步骤
|
||||||
|
height?: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
function getStepData(steps: string) {
|
function getStepData(steps: string) {
|
||||||
|
@ -88,7 +89,6 @@
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.execute-history-list {
|
.execute-history-list {
|
||||||
height: calc(100vh - 240px);
|
|
||||||
@apply overflow-auto;
|
@apply overflow-auto;
|
||||||
.ms-scroll-bar();
|
.ms-scroll-bar();
|
||||||
.execute-history-list-item {
|
.execute-history-list-item {
|
||||||
|
|
|
@ -195,6 +195,7 @@
|
||||||
v-if="activeTab === 'executionHistory'"
|
v-if="activeTab === 'executionHistory'"
|
||||||
:execute-list="executeHistoryList"
|
:execute-list="executeHistoryList"
|
||||||
:loading="executeLoading"
|
:loading="executeLoading"
|
||||||
|
height="h-[calc(100vh-240px)]"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
|
|
Loading…
Reference in New Issue