@@ -46,18 +46,18 @@ const EVENT_OPTIONS = [
46
46
47
47
const childrenMap = {
48
48
tabs : TabsOptionControl ,
49
- selectedTabKey : stringExposingStateControl ( ' key' , ' Tab1' ) ,
49
+ selectedTabKey : stringExposingStateControl ( " key" , " Tab1" ) ,
50
50
containers : withDefault ( sameTypeMap ( SimpleContainerComp ) , {
51
- 0 : { layout : { } , items : { } } ,
52
- 1 : { layout : { } , items : { } } ,
51
+ 0 : { layout : { } , items : { } } ,
52
+ 1 : { layout : { } , items : { } } ,
53
53
} ) ,
54
54
autoHeight : AutoHeightControl ,
55
55
scrollbars : withDefault ( BoolControl , false ) ,
56
- placement : withDefault ( PositionControl , ' top' ) ,
56
+ placement : withDefault ( PositionControl , " top" ) ,
57
57
onEvent : eventHandlerControl ( EVENT_OPTIONS ) ,
58
58
disabled : BoolCodeControl ,
59
59
showHeader : withDefault ( BoolControl , true ) ,
60
- style : withDefault ( styleControl ( TabContainerStyle ) , { borderWidth : '1px' } ) ,
60
+ style : withDefault ( styleControl ( TabContainerStyle ) , { borderWidth :'1px' } ) ,
61
61
headerStyle : styleControl ( ContainerHeaderStyle ) ,
62
62
bodyStyle : styleControl ( ContainerBodyStyle ) ,
63
63
animationStyle : styleControl ( AnimationStyle ) ,
@@ -251,42 +251,30 @@ const TabbedContainer = (props: TabbedContainerProps) => {
251
251
} )
252
252
253
253
return (
254
- < ScrollBar
255
- style = { {
256
- height : props . autoHeight ? '100%' : 'auto' ,
257
- margin : '0px' ,
258
- padding : '0px' ,
259
- } }
260
- hideScrollbar = { ! props . scrollbars }
261
- >
262
- < div
263
- style = { {
264
- padding : props . style . margin ,
265
- height : props . autoHeight ? '100%' : 'auto' ,
266
- } }
267
- >
254
+ < ScrollBar style = { { height : props . autoHeight ? "100%" : "auto" , margin : "0px" , padding : "0px" } } hideScrollbar = { ! props . scrollbars } >
255
+ < div style = { { padding : props . style . margin , height : props . autoHeight ? "100%" : "auto" } } >
268
256
< BackgroundColorContext . Provider value = { headerStyle . headerBackground } >
269
257
< StyledTabs
270
258
$animationStyle = { props . animationStyle }
271
- tabPosition = { props . placement }
272
- activeKey = { activeKey }
273
- $style = { style }
274
- $headerStyle = { headerStyle }
275
- $bodyStyle = { bodyStyle }
276
- $showHeader = { showHeader }
277
- onChange = { ( key ) => {
278
- if ( key !== props . selectedTabKey . value ) {
279
- props . selectedTabKey . onChange ( key ) ;
280
- props . onEvent ( ' change' ) ;
281
- }
282
- } }
283
- onTabClick = { onTabClick }
284
- animated
285
- $isMobile = { isMobile }
286
- items = { tabItems }
287
- tabBarGutter = { props . tabsGutter }
288
- centered = { props . tabsCentered }
289
- > </ StyledTabs >
259
+ tabPosition = { props . placement }
260
+ activeKey = { activeKey }
261
+ $style = { style }
262
+ $headerStyle = { headerStyle }
263
+ $bodyStyle = { bodyStyle }
264
+ $showHeader = { showHeader }
265
+ onChange = { ( key ) => {
266
+ if ( key !== props . selectedTabKey . value ) {
267
+ props . selectedTabKey . onChange ( key ) ;
268
+ props . onEvent ( " change" ) ;
269
+ }
270
+ } }
271
+ onTabClick = { onTabClick }
272
+ animated
273
+ $isMobile = { isMobile }
274
+ items = { tabItems }
275
+ tabBarGutter = { props . tabsGutter }
276
+ centered = { props . tabsCentered }
277
+ > </ StyledTabs >
290
278
</ BackgroundColorContext . Provider >
291
279
</ div >
292
280
</ ScrollBar >
0 commit comments