From 73ca831cb4c678ad7110676a473c6fbb117cb38e Mon Sep 17 00:00:00 2001 From: Amy0104 <97265214+Amy0104@users.noreply.github.com> Date: Thu, 24 Mar 2022 12:09:25 +0800 Subject: [PATCH] =?UTF-8?q?[Fix][UI=20Next][V1.0.0-Alpha]=20Add=20direct?= =?UTF-8?q?=20and=20type=20=20into=20the=20custom=20par=E2=80=A6=20(#9081)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [Fix][UI Next][V1.0.0-Alpha] Add direct and type into the custom parameters in shell. * [Fix][UI Next][V1.0.0-Alpha] Add the classes for e2e. --- .../projects/task/components/node/fields/use-custom-params.ts | 3 +++ .../views/projects/task/components/node/fields/use-shell.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-custom-params.ts b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-custom-params.ts index 2f8309bee2..22b45d32c6 100644 --- a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-custom-params.ts +++ b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-custom-params.ts @@ -88,12 +88,14 @@ export function useCustomParams({ type: 'custom-parameters', field: field, name: t(`project.node.${name}`), + class: 'btn-custom-parameters', span, children: [ { type: 'input', field: 'prop', span: 6, + class: 'input-param-key', props: { placeholder: t('project.node.prop_tips'), maxLength: 256 @@ -134,6 +136,7 @@ export function useCustomParams({ type: 'input', field: 'value', span: 6, + class: 'input-param-value', props: { placeholder: t('project.node.value_tips'), maxLength: 256 diff --git a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-shell.ts b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-shell.ts index 09e0a03d8e..2d19508cbf 100644 --- a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-shell.ts +++ b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-shell.ts @@ -68,6 +68,6 @@ export function useShell(model: { [field: string]: any }): IJsonItem[] { loading } }, - ...useCustomParams({ model, field: 'localParams', isSimple: true }) + ...useCustomParams({ model, field: 'localParams', isSimple: false }) ] }