From 83245a406b8c4880397989c9c99223065710b6d3 Mon Sep 17 00:00:00 2001 From: Junyi Date: Mon, 13 Nov 2023 12:13:54 +0800 Subject: [PATCH] fix(plugin-workflow): fix workflow title in binding workflow configuration not showing (#3026) --- .../antd/action/Action.Designer.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx b/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx index 02af62f80..7d06f08eb 100644 --- a/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx +++ b/packages/core/client/src/schema-component/antd/action/Action.Designer.tsx @@ -715,6 +715,7 @@ function RemoveButton( } function WorkflowSelect({ types, ...props }) { + const { t } = useTranslation(); const index = ArrayTable.useIndex(); const { setValuesIn } = useForm(); const baseCollection = useCollection(); @@ -740,7 +741,12 @@ function WorkflowSelect({ types, ...props }) { return ( ); } @@ -847,11 +854,6 @@ function WorkflowConfig() { 'x-decorator': 'FormItem', 'x-component': 'WorkflowSelect', 'x-component-props': { - placeholder: t('Select workflow', { ns: 'workflow' }), - fieldNames: { - label: 'title', - value: 'key', - }, types: workflowTypes.map((item) => item.value), }, required: true,