diff --git a/react-ui/src/pages/Pipeline/components/PropsLabel/index.tsx b/react-ui/src/pages/Pipeline/components/PropsLabel/index.tsx index 04197b75..9e64775e 100644 --- a/react-ui/src/pages/Pipeline/components/PropsLabel/index.tsx +++ b/react-ui/src/pages/Pipeline/components/PropsLabel/index.tsx @@ -27,7 +27,7 @@ function PropsLabel({ title, menuItems, onClick }: PropsLabelProps) { menu={{ items: menuItems, onClick: handleItemClick, - triggerSubMenuAction: 'click', + triggerSubMenuAction: 'hover', }} trigger={['click']} placement="topRight" diff --git a/react-ui/src/pages/Pipeline/editPipeline/props.jsx b/react-ui/src/pages/Pipeline/editPipeline/props.jsx index 2f7af23e..bc054272 100644 --- a/react-ui/src/pages/Pipeline/editPipeline/props.jsx +++ b/react-ui/src/pages/Pipeline/editPipeline/props.jsx @@ -198,7 +198,7 @@ const Props = forwardRef(({ onParentChange }, ref) => { afterOpenChange={afterOpenChange} open={open} width={520} - className={styles.editPipelineProps} + className={styles['pipeline-drawer']} >
{ }} autoComplete="off" > -
+
{ > -
+
-
+
@@ -368,7 +369,7 @@ const Props = forwardRef(({ onParentChange }, ref) => { ))} -
+
{inParametersList.map((item) => ( @@ -388,7 +389,7 @@ const Props = forwardRef(({ onParentChange }, ref) => { } required={item.value.require ? true : false} > -
+
{ {item.value.type === 'ref' && ( @@ -420,7 +422,7 @@ const Props = forwardRef(({ onParentChange }, ref) => {
))} -
+
{outParametersList.map((item) => ( diff --git a/react-ui/src/pages/Pipeline/editPipeline/props.less b/react-ui/src/pages/Pipeline/editPipeline/props.less index fe0079da..1b21600a 100644 --- a/react-ui/src/pages/Pipeline/editPipeline/props.less +++ b/react-ui/src/pages/Pipeline/editPipeline/props.less @@ -1,4 +1,4 @@ -.editPipelineProps { +.pipeline-drawer { :global { label { width: 100%; @@ -8,29 +8,30 @@ } } } -} -.editPipelinePropsContent { - display: flex; - align-items: center; - width: 100%; - height: 43px; - margin-bottom: 20px; - padding: 0 24px; - color: @text-color; - font-size: @font-size; - background: #f8fbff; -} -.ref-row { - display: flex; - align-items: center; + &__title { + display: flex; + align-items: center; + width: 100%; + height: 43px; + margin-bottom: 20px; + padding: 0 24px; + color: @text-color; + font-size: @font-size; + background: #f8fbff; + } + + &__ref-row { + display: flex; + align-items: center; + } - .select-button { + &__select-button { display: flex; flex: none; align-items: center; justify-content: flex-start; - width: 100px; + // width: 100px; margin-left: 10px; padding-right: 0; padding-left: 0;