From 64e0659f7bad4956e9b363d9737893f0e6a2936c Mon Sep 17 00:00:00 2001 From: Junyi Date: Tue, 2 Jan 2024 21:35:09 +0800 Subject: [PATCH] feat(plugin-workflow-request): allow to use variable in url (#3304) --- .../plugin-workflow-request/src/client/RequestInstruction.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-workflow-request/src/client/RequestInstruction.tsx b/packages/plugins/@nocobase/plugin-workflow-request/src/client/RequestInstruction.tsx index c687a5644..836e40f41 100644 --- a/packages/plugins/@nocobase/plugin-workflow-request/src/client/RequestInstruction.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-request/src/client/RequestInstruction.tsx @@ -4,6 +4,7 @@ import { Instruction, WorkflowVariableInput, WorkflowVariableJSON, + WorkflowVariableTextArea, defaultFieldNames, } from '@nocobase/plugin-workflow/client'; @@ -41,7 +42,7 @@ export default class extends Instruction { title: `{{t("URL", { ns: "${NAMESPACE}" })}}`, 'x-decorator': 'FormItem', 'x-decorator-props': {}, - 'x-component': 'Input', + 'x-component': 'WorkflowVariableTextArea', 'x-component-props': { placeholder: 'https://www.nocobase.com', }, @@ -175,6 +176,7 @@ export default class extends Instruction { components = { ArrayItems, WorkflowVariableInput, + WorkflowVariableTextArea, WorkflowVariableJSON, }; useVariables({ key, title }, { types, fieldNames = defaultFieldNames }) {