From 4341904360c53e29f9dfabc40e7910db4b584f74 Mon Sep 17 00:00:00 2001 From: baiqi Date: Tue, 9 Jul 2024 17:45:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20j?= =?UTF-8?q?son-schema=E5=A2=9E=E5=8A=A0=E7=A6=81=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/pure/ms-form-table/index.vue | 31 ++++++++++++-- .../components/pure/ms-json-schema/index.vue | 40 ++++++++++++++++--- .../views/api-test/components/paramTable.vue | 8 +++- .../components/requestComposition/body.vue | 9 ++++- 4 files changed, 77 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/pure/ms-form-table/index.vue b/frontend/src/components/pure/ms-form-table/index.vue index 5b613153b3..6526ba2d16 100644 --- a/frontend/src/components/pure/ms-form-table/index.vue +++ b/frontend/src/components/pure/ms-form-table/index.vue @@ -1,5 +1,5 @@ @@ -102,6 +112,7 @@ :min="0" :precision="0" size="medium" + :disabled="props.disabled" />
-
@@ -111,6 +122,7 @@ v-model:model-value="record.minimum" class="ms-form-table-input-number" size="medium" + :disabled="props.disabled" />
-
@@ -128,6 +141,7 @@ v-model:model-value="record.maximum" class="ms-form-table-input-number" size="medium" + :disabled="props.disabled" />
-
@@ -148,6 +163,7 @@ :min="0" :step="1" :precision="0" + :disabled="props.disabled" />
-
@@ -160,6 +176,7 @@ :min="0" :step="1" :precision="0" + :disabled="props.disabled" />
-
@@ -169,6 +186,7 @@ v-model:model-value="record.defaultValue" class="ms-form-table-input-number" size="medium" + :disabled="props.disabled" />
-
@@ -221,12 +243,15 @@ - + - + @@ -269,7 +294,7 @@ :ok-text="t('common.save')" @confirm="applySetting" > - + (); const { t } = useI18n(); const defaultItem: JsonSchemaTableItem = { diff --git a/frontend/src/views/api-test/components/paramTable.vue b/frontend/src/views/api-test/components/paramTable.vue index cf6b89d11c..70cb04af1f 100644 --- a/frontend/src/views/api-test/components/paramTable.vue +++ b/frontend/src/views/api-test/components/paramTable.vue @@ -74,7 +74,13 @@ diff --git a/frontend/src/views/api-test/components/requestComposition/body.vue b/frontend/src/views/api-test/components/requestComposition/body.vue index 284ec81cfb..939bf8d8be 100644 --- a/frontend/src/views/api-test/components/requestComposition/body.vue +++ b/frontend/src/views/api-test/components/requestComposition/body.vue @@ -130,6 +130,7 @@ ref="jsonSchemaRef" v-model:data="innerParams.jsonBody.jsonSchemaTableData" v-model:selectedKeys="selectedKeys" + :disabled="props.disabledExceptParam" />