@@ -281,6 +286,7 @@
(e: 'change', val: string): void;
(e: 'dblclick'): void;
(e: 'apply', val: string): void;
+ (e: 'setParams'): void;
}>();
const { t } = useI18n();
diff --git a/frontend/src/components/pure/ms-json-schema/index.vue b/frontend/src/components/pure/ms-json-schema/index.vue
index aa9f14f00f..ffab0b7011 100644
--- a/frontend/src/components/pure/ms-json-schema/index.vue
+++ b/frontend/src/components/pure/ms-json-schema/index.vue
@@ -85,7 +85,7 @@
v-model:value="record.example"
size="medium"
:disabled="props.disabled"
- @dblclick="() => quickInputParams(record)"
+ @set-params="() => quickInputParams(record)"
@change="emitChange('exampleInput')"
/>
diff --git a/frontend/src/locale/en-US/common.ts b/frontend/src/locale/en-US/common.ts
index 54a4ec8d7c..9fa4cefb26 100644
--- a/frontend/src/locale/en-US/common.ts
+++ b/frontend/src/locale/en-US/common.ts
@@ -202,4 +202,5 @@ export default {
'common.gotIt': 'Got it',
'common.inputPleaseEnterTags': 'Please enter the update tag enter add, not more than 64 characters',
'common.cutSuccess': 'Cut successfully',
+ 'common.copySuccessToClipboard': 'Copied to clipboard',
};
diff --git a/frontend/src/locale/zh-CN/common.ts b/frontend/src/locale/zh-CN/common.ts
index d6d1d910f5..181180afcc 100644
--- a/frontend/src/locale/zh-CN/common.ts
+++ b/frontend/src/locale/zh-CN/common.ts
@@ -201,4 +201,5 @@ export default {
'common.gotIt': '知道了',
'common.inputPleaseEnterTags': '请输入更新标签回车添加,不得超过64字符',
'common.cutSuccess': '剪切成功',
+ 'common.copySuccessToClipboard': '已复制到剪切板',
};
diff --git a/frontend/src/views/api-test/components/condition/content.vue b/frontend/src/views/api-test/components/condition/content.vue
index eed92ce008..deecca2579 100644
--- a/frontend/src/views/api-test/components/condition/content.vue
+++ b/frontend/src/views/api-test/components/condition/content.vue
@@ -237,6 +237,7 @@
required: false,
}"
:selectable="false"
+ :show-quick-copy="props.showQuickCopy"
@change="() => emit('change')"
/>
@@ -378,6 +380,7 @@
:selectable="false"
:scroll="{ x: '700px' }"
:response="props.response"
+ :show-quick-copy="props.showQuickCopy"
@change="handleExtractParamTableChange"
@more-action-select="(e,r)=> handleExtractParamMoreActionSelect(e,r as ExpressionConfig)"
>
@@ -537,6 +540,7 @@
totalList?: ExecuteConditionProcessor[]; // 总列表
sqlCodeEditorHeight?: string; // sql脚本编辑器高度
scriptCodeEditorHeight?: string; // 脚本的高度
+ showQuickCopy?: boolean; // 显示快捷复制icon
}>(),
{
showAssociatedScene: false,
diff --git a/frontend/src/views/api-test/components/condition/index.vue b/frontend/src/views/api-test/components/condition/index.vue
index c732f1065f..1f84e31dae 100644
--- a/frontend/src/views/api-test/components/condition/index.vue
+++ b/frontend/src/views/api-test/components/condition/index.vue
@@ -43,6 +43,7 @@
:show-pre-post-request="props.showPrePostRequest"
:request-radio-text-props="props.requestRadioTextProps"
:sql-code-editor-height="props.sqlCodeEditorHeight"
+ :show-quick-copy="props.showQuickCopy"
@copy="copyListItem"
@delete="deleteListItem"
@change="changeHandler"
@@ -73,6 +74,7 @@
showAssociatedScene?: boolean;
showPrePostRequest?: boolean; // 是否展示前后置请求忽略选项
sqlCodeEditorHeight?: string;
+ showQuickCopy?: boolean; // 显示快捷复制icon
}>(),
{
showAssociatedScene: false,
diff --git a/frontend/src/views/api-test/components/paramTable.vue b/frontend/src/views/api-test/components/paramTable.vue
index ebda5546e0..479f1d78d4 100644
--- a/frontend/src/views/api-test/components/paramTable.vue
+++ b/frontend/src/views/api-test/components/paramTable.vue
@@ -124,9 +124,17 @@
v-model:model-value="record[columnConfig.dataIndex as string]"
:disabled="props.disabledExceptParam || columnConfig.disabledColumn"
:placeholder="t('apiTestDebug.commonPlaceholder')"
- class="ms-form-table-input ms-form-table-input--hasPlaceholder"
+ class="ms-form-table-input ms-params-input ms-form-table-input--hasPlaceholder"
@input="() => addTableLine(rowIndex, columnConfig.addLineDisabled)"
- />
+ >
+
+
+
+