From 086ecb3caa795b783ed4879a27d3a6229d675bab Mon Sep 17 00:00:00 2001 From: baiqi Date: Tue, 13 Aug 2024 11:03:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=A1=A8=E6=A0=BC=E6=96=B0=E5=A2=9E=E8=A1=8C?= =?UTF-8?q?&=E5=8F=98=E9=87=8F=E6=96=AD=E8=A8=80=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E8=A1=8C&=E8=84=9A=E6=9C=AC=E6=96=AD=E8=A8=80=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/ms-assertion/comp/VariableTab.vue | 3 --- frontend/src/components/pure/ms-form-table/index.vue | 9 ++++++++- frontend/src/views/api-test/components/paramTable.vue | 2 +- .../components/requestComposition/response/index.vue | 2 +- .../scenario/components/common/scriptOperationDrawer.vue | 1 + 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/business/ms-assertion/comp/VariableTab.vue b/frontend/src/components/business/ms-assertion/comp/VariableTab.vue index 5ffb7d6309..252e740aaa 100644 --- a/frontend/src/components/business/ms-assertion/comp/VariableTab.vue +++ b/frontend/src/components/business/ms-assertion/comp/VariableTab.vue @@ -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', // 匹配条件 diff --git a/frontend/src/components/pure/ms-form-table/index.vue b/frontend/src/components/pure/ms-form-table/index.vue index cb2134d7f0..0fd05af096 100644 --- a/frontend/src/components/pure/ms-form-table/index.vue +++ b/frontend/src/components/pure/ms-form-table/index.vue @@ -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; diff --git a/frontend/src/views/api-test/components/paramTable.vue b/frontend/src/views/api-test/components/paramTable.vue index 01a00b529f..c8afa08dd6 100644 --- a/frontend/src/views/api-test/components/paramTable.vue +++ b/frontend/src/views/api-test/components/paramTable.vue @@ -926,7 +926,7 @@ }); const { lastDataIsDefault } = filterKeyValParams(arr, defaultLineData.value, false); if ( - (arr.length === 1 && !lastDataIsDefault) || + !lastDataIsDefault || (hasNoIdItem && !props.disabledExceptParam && !props.disabledParamValue && diff --git a/frontend/src/views/api-test/components/requestComposition/response/index.vue b/frontend/src/views/api-test/components/requestComposition/response/index.vue index c69eb8023b..8ca263cb77 100644 --- a/frontend/src/views/api-test/components/requestComposition/response/index.vue +++ b/frontend/src/views/api-test/components/requestComposition/response/index.vue @@ -60,7 +60,7 @@