style(测试计划): 修复测试计划报告执行历史高度展示错误

This commit is contained in:
xinxin.wu 2024-07-18 16:04:05 +08:00 committed by 刘瑞斌
parent 27d8d1ac47
commit 71c7493e88
2 changed files with 3 additions and 2 deletions

View File

@ -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 {

View File

@ -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>