diff --git a/client/packages/lowcoder/src/comps/comps/selectInputComp/stepControl.tsx b/client/packages/lowcoder/src/comps/comps/selectInputComp/stepControl.tsx index 572ba4a60..5db05650e 100644 --- a/client/packages/lowcoder/src/comps/comps/selectInputComp/stepControl.tsx +++ b/client/packages/lowcoder/src/comps/comps/selectInputComp/stepControl.tsx @@ -95,7 +95,7 @@ const StepsChildrenMap = { style: styleControl(StepsStyle , 'style'), viewRef: RefControl, animationStyle: styleControl(AnimationStyle ,'animationStyle' ), - showVerticalScrollbar: withDefault(BoolControl, false), + showScrollBars: withDefault(BoolControl, false), minHorizontalWidth: withDefault(RadiusControl, ''), }; @@ -182,7 +182,7 @@ let StepControlBasicComp = (function () { padding: "0px", }} overflow="scroll" - hideScrollbar={!props.showVerticalScrollbar}> + hideScrollbar={!props.showScrollBars}> {props.options.map((option, index) => ( {children.autoHeight.getPropertyView()} - {!children.autoHeight.getView() && ( - children.showVerticalScrollbar.propertyView({ - label: trans("prop.showVerticalScrollbar"), - }) - )} - {children.minHorizontalWidth.propertyView({ - label: trans("prop.minHorizontalWidth"), - placeholder: '100px', - })} {children.size.propertyView({ label: trans("step.size"), radioButton: true, @@ -261,15 +253,23 @@ let StepControlBasicComp = (function () { radioButton: true, }) } + {children.direction.getView() == "horizontal" && ( + children.minHorizontalWidth.propertyView({ + label: trans("prop.minHorizontalWidth"), + placeholder: '100px', + }) + )} + {!children.autoHeight.getView() && ( + children.showScrollBars.propertyView({ + label: trans("prop.scrollbar"), + }) + )} { children.displayType.getView() != "inline" && !children.showIcons.getView() && ( children.showDots.propertyView({label: trans("step.showDots")} ))} { children.displayType.getView() != "inline" && !children.showDots.getView() && ( children.showIcons.propertyView({label: trans("step.showIcons")} ))} - {!children.autoHeight.getView() && ( - children.showVerticalScrollbar.propertyView({label: trans("prop.showVerticalScrollbar")}) - )} )}