From 422429e7724fc7ba964332fcffd4966373c2f911 Mon Sep 17 00:00:00 2001 From: Junyi Date: Tue, 18 Apr 2023 20:46:59 +0700 Subject: [PATCH] refactor(plugin-workflow): migrate menu items to options (#1724) --- .../workflow/src/client/WorkflowCanvas.tsx | 11 +++++++---- .../client/components/CollectionFieldset.tsx | 19 +++++++++++-------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/packages/plugins/workflow/src/client/WorkflowCanvas.tsx b/packages/plugins/workflow/src/client/WorkflowCanvas.tsx index e1477538c..fa9ab84af 100644 --- a/packages/plugins/workflow/src/client/WorkflowCanvas.tsx +++ b/packages/plugins/workflow/src/client/WorkflowCanvas.tsx @@ -173,10 +173,13 @@ export function WorkflowCanvas() { /> - {lang('Execution history')} - {lang('Copy to new version')} - + } > + ({ + key: field.name, + label: compile(field.uiSchema?.title ?? field.name), + }))} + onClick={({ key }) => onChange({ ...value, [key]: null })} + className={css` + max-height: 300px; + overflow-y: auto; + `} + /> }>