@@ -6,7 +6,12 @@ import { AutoHeightControl } from "comps/controls/autoHeightControl";
66import { stringExposingStateControl } from "comps/controls/codeStateControl" ;
77import { ColumnOptionControl } from "comps/controls/optionsControl" ;
88import { styleControl } from "comps/controls/styleControl" ;
9- import { ResponsiveLayoutRowStyle , ResponsiveLayoutRowStyleType , ResponsiveLayoutColStyleType , TabContainerStyle , TabContainerStyleType , heightCalculator , widthCalculator , ResponsiveLayoutColStyle } from "comps/controls/styleControlConstants" ;
9+ import {
10+ ResponsiveLayoutRowStyle ,
11+ ResponsiveLayoutRowStyleType ,
12+ ResponsiveLayoutColStyleType ,
13+ ResponsiveLayoutColStyle
14+ } from "comps/controls/styleControlConstants" ;
1015import { sameTypeMap , UICompBuilder , withDefault } from "comps/generators" ;
1116import { addMapChildAction } from "comps/generators/sameTypeMap" ;
1217import { NameConfigHidden , withExposingConfigs } from "comps/generators/withExposing" ;
@@ -52,7 +57,6 @@ const ColWrapper = styled(Col)<{
5257
5358const childrenMap = {
5459 columns : ColumnOptionControl ,
55- selectedTabKey : stringExposingStateControl ( "key" , "Tab1" ) ,
5660 containers : withDefault ( sameTypeMap ( SimpleContainerComp ) , {
5761 0 : { view : { } , layout : { } } ,
5862 1 : { view : { } , layout : { } } ,
@@ -278,11 +282,6 @@ class ResponsiveLayoutImplComp extends ResponsiveLayoutBaseComp implements ICont
278282 }
279283
280284 realSimpleContainer ( key ?: string ) : SimpleContainerComp | undefined {
281- let selectedTabKey = this . children . selectedTabKey . getView ( ) . value ;
282- const columns = this . children . columns . getView ( ) ;
283- const selectedTab = columns . find ( ( column ) => column . key === selectedTabKey ) ?? columns [ 0 ] ;
284- const id = String ( selectedTab . id ) ;
285- if ( _ . isNil ( key ) ) return this . children . containers . children [ id ] ;
286285 return Object . values ( this . children . containers . children ) . find ( ( container ) =>
287286 container . realSimpleContainer ( key )
288287 ) ;
0 commit comments