fix(接口测试): 参数表格新增行&变量断言新增行&脚本断言显示问题修复
This commit is contained in:
parent
9c245c4934
commit
086ecb3caa
|
@ -16,8 +16,6 @@
|
|||
import { EQUAL, statusCodeOptions } from '@/components/pure/ms-advance-filter/index';
|
||||
import paramsTable, { type ParamTableColumn } from '@/views/api-test/components/paramTable.vue';
|
||||
|
||||
import { responseHeaderOption } from '@/config/apiTest';
|
||||
|
||||
interface Param {
|
||||
[key: string]: any;
|
||||
variableAssertionItems: any[];
|
||||
|
@ -48,7 +46,6 @@
|
|||
slotName: 'key',
|
||||
showInTable: true,
|
||||
showDrag: true,
|
||||
options: responseHeaderOption,
|
||||
},
|
||||
{
|
||||
title: 'ms.assertion.matchCondition', // 匹配条件
|
||||
|
|
|
@ -539,7 +539,7 @@
|
|||
emit('selectAll', checked);
|
||||
}
|
||||
|
||||
function rowClass(record: TableData, rowIndex: number) {
|
||||
function rowClass(record: TableData) {
|
||||
if (record.diff) {
|
||||
if (props.diffMode === 'add') {
|
||||
return 'add-row-class';
|
||||
|
@ -575,6 +575,12 @@
|
|||
.arco-textarea-wrapper {
|
||||
border-radius: 0;
|
||||
}
|
||||
article {
|
||||
position: relative;
|
||||
top: 50%;
|
||||
display: inline-block;
|
||||
transform: translateY(-50%); /* 垂直居中 */
|
||||
}
|
||||
}
|
||||
}
|
||||
.ms-form-table-td-text {
|
||||
|
@ -663,6 +669,7 @@
|
|||
}
|
||||
}
|
||||
:deep(.ms-form-table-input:not(.arco-input-focus, .arco-select-view-focus, .arco-textarea-focus)) {
|
||||
border-radius: 0;
|
||||
&:not(:hover) {
|
||||
@apply bg-transparent;
|
||||
|
||||
|
|
|
@ -926,7 +926,7 @@
|
|||
});
|
||||
const { lastDataIsDefault } = filterKeyValParams(arr, defaultLineData.value, false);
|
||||
if (
|
||||
(arr.length === 1 && !lastDataIsDefault) ||
|
||||
!lastDataIsDefault ||
|
||||
(hasNoIdItem &&
|
||||
!props.disabledExceptParam &&
|
||||
!props.disabledParamValue &&
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
<a-spin
|
||||
v-show="innerIsExpanded"
|
||||
:loading="props.loading"
|
||||
:class="[isResponseModel ? 'h-[381px] w-full' : 'w-full px-[16px] pb-[16px]']"
|
||||
:class="[isResponseModel ? 'h-[381px] w-full' : 'w-full flex-1 px-[16px] pb-[16px]']"
|
||||
>
|
||||
<edit
|
||||
v-if="props.isEdit && activeResponseType === 'content' && responseDefinition"
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
:request-result="currentResponse"
|
||||
:console="currentResponse?.console"
|
||||
:is-edit="false"
|
||||
is-definition
|
||||
hide-layout-switch
|
||||
>
|
||||
<template #titleRight>
|
||||
|
|
Loading…
Reference in New Issue