@@ -95,7 +95,7 @@ const StepsChildrenMap = {
95
95
style : styleControl ( StepsStyle , 'style' ) ,
96
96
viewRef : RefControl < HTMLDivElement > ,
97
97
animationStyle : styleControl ( AnimationStyle , 'animationStyle' ) ,
98
- showVerticalScrollbar : withDefault ( BoolControl , false ) ,
98
+ showScrollBars : withDefault ( BoolControl , false ) ,
99
99
minHorizontalWidth : withDefault ( RadiusControl , '' ) ,
100
100
} ;
101
101
@@ -182,7 +182,7 @@ let StepControlBasicComp = (function () {
182
182
padding : "0px" ,
183
183
} }
184
184
overflow = "scroll"
185
- hideScrollbar = { ! props . showVerticalScrollbar } >
185
+ hideScrollbar = { ! props . showScrollBars } >
186
186
< Steps
187
187
initial = { props . initialValue . value - 1 }
188
188
current = { current }
@@ -197,6 +197,7 @@ let StepControlBasicComp = (function () {
197
197
>
198
198
{ props . options . map ( ( option , index ) => (
199
199
< Steps . Step
200
+ style = { { minWidth :props . minHorizontalWidth || '100%' } }
200
201
key = { index }
201
202
title = { option . label }
202
203
subTitle = { option . subTitle }
@@ -234,15 +235,6 @@ let StepControlBasicComp = (function () {
234
235
{ [ "layout" , "both" ] . includes ( useContext ( EditorContext ) . editorModeStatus ) && (
235
236
< Section name = { sectionNames . layout } >
236
237
{ children . autoHeight . getPropertyView ( ) }
237
- { ! children . autoHeight . getView ( ) && (
238
- children . showVerticalScrollbar . propertyView ( {
239
- label : trans ( "prop.showVerticalScrollbar" ) ,
240
- } )
241
- ) }
242
- { children . minHorizontalWidth . propertyView ( {
243
- label : trans ( "prop.minHorizontalWidth" ) ,
244
- placeholder : '100px' ,
245
- } ) }
246
238
{ children . size . propertyView ( {
247
239
label : trans ( "step.size" ) ,
248
240
radioButton : true ,
@@ -261,15 +253,23 @@ let StepControlBasicComp = (function () {
261
253
radioButton : true ,
262
254
} )
263
255
}
256
+ { children . direction . getView ( ) == "horizontal" && (
257
+ children . minHorizontalWidth . propertyView ( {
258
+ label : trans ( "prop.minHorizontalWidth" ) ,
259
+ placeholder : '100px' ,
260
+ } )
261
+ ) }
262
+ { ! children . autoHeight . getView ( ) && (
263
+ children . showScrollBars . propertyView ( {
264
+ label : trans ( "prop.scrollbar" ) ,
265
+ } )
266
+ ) }
264
267
{ children . displayType . getView ( ) != "inline" && ! children . showIcons . getView ( ) && (
265
268
children . showDots . propertyView ( { label : trans ( "step.showDots" ) }
266
269
) ) }
267
270
{ children . displayType . getView ( ) != "inline" && ! children . showDots . getView ( ) && (
268
271
children . showIcons . propertyView ( { label : trans ( "step.showIcons" ) }
269
272
) ) }
270
- { ! children . autoHeight . getView ( ) && (
271
- children . showVerticalScrollbar . propertyView ( { label : trans ( "prop.showVerticalScrollbar" ) } )
272
- ) }
273
273
</ Section >
274
274
) }
275
275
0 commit comments