@@ -6,7 +6,12 @@ import { AutoHeightControl } from "comps/controls/autoHeightControl";
6
6
import { stringExposingStateControl } from "comps/controls/codeStateControl" ;
7
7
import { ColumnOptionControl } from "comps/controls/optionsControl" ;
8
8
import { 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" ;
10
15
import { sameTypeMap , UICompBuilder , withDefault } from "comps/generators" ;
11
16
import { addMapChildAction } from "comps/generators/sameTypeMap" ;
12
17
import { NameConfigHidden , withExposingConfigs } from "comps/generators/withExposing" ;
@@ -52,7 +57,6 @@ const ColWrapper = styled(Col)<{
52
57
53
58
const childrenMap = {
54
59
columns : ColumnOptionControl ,
55
- selectedTabKey : stringExposingStateControl ( "key" , "Tab1" ) ,
56
60
containers : withDefault ( sameTypeMap ( SimpleContainerComp ) , {
57
61
0 : { view : { } , layout : { } } ,
58
62
1 : { view : { } , layout : { } } ,
@@ -278,11 +282,6 @@ class ResponsiveLayoutImplComp extends ResponsiveLayoutBaseComp implements ICont
278
282
}
279
283
280
284
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 ] ;
286
285
return Object . values ( this . children . containers . children ) . find ( ( container ) =>
287
286
container . realSimpleContainer ( key )
288
287
) ;
0 commit comments