Skip to content

Commit d494e31

Browse files
committed
formating removed-117
1 parent 8b639e2 commit d494e31

File tree

1 file changed

+26
-38
lines changed

1 file changed

+26
-38
lines changed

client/packages/lowcoder/src/comps/comps/tabs/tabbedContainerComp.tsx

Lines changed: 26 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,18 @@ const EVENT_OPTIONS = [
4646

4747
const childrenMap = {
4848
tabs: TabsOptionControl,
49-
selectedTabKey: stringExposingStateControl('key', 'Tab1'),
49+
selectedTabKey: stringExposingStateControl("key", "Tab1"),
5050
containers: withDefault(sameTypeMap(SimpleContainerComp), {
51-
0: {layout: {}, items: {}},
52-
1: {layout: {}, items: {}},
51+
0: { layout: {}, items: {} },
52+
1: { layout: {}, items: {} },
5353
}),
5454
autoHeight: AutoHeightControl,
5555
scrollbars: withDefault(BoolControl, false),
56-
placement: withDefault(PositionControl, 'top'),
56+
placement: withDefault(PositionControl, "top"),
5757
onEvent: eventHandlerControl(EVENT_OPTIONS),
5858
disabled: BoolCodeControl,
5959
showHeader: withDefault(BoolControl, true),
60-
style: withDefault(styleControl(TabContainerStyle), {borderWidth: '1px'}),
60+
style: withDefault(styleControl(TabContainerStyle), {borderWidth:'1px'}),
6161
headerStyle: styleControl(ContainerHeaderStyle),
6262
bodyStyle: styleControl(ContainerBodyStyle),
6363
animationStyle: styleControl(AnimationStyle),
@@ -251,42 +251,30 @@ const TabbedContainer = (props: TabbedContainerProps) => {
251251
})
252252

253253
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"}}>
268256
<BackgroundColorContext.Provider value={headerStyle.headerBackground}>
269257
<StyledTabs
270258
$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>
290278
</BackgroundColorContext.Provider>
291279
</div>
292280
</ScrollBar>

0 commit comments

Comments
 (0)