Skip to content

Commit 9b7730d

Browse files
committed
formating removed-31
1 parent 86b8080 commit 9b7730d

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

client/packages/lowcoder/src/comps/comps/containerComp/containerComp.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const ContainerBaseComp = (function () {
5050
{children.container.children.showHeader.getView() && (
5151
<Section name={"Header Style"}>
5252
{ children.container.headerStylePropertyView() }
53-
</Section>
53+
</Section>
5454
)}
5555
{children.container.children.showBody.getView() && (
5656
<Section name={"Body Style"}>
@@ -68,7 +68,7 @@ export const ContainerBaseComp = (function () {
6868
);
6969
})
7070
.build();
71-
})();
71+
})();
7272

7373
// Compatible with old data
7474
function convertOldContainerParams(params: CompParams<any>) {
@@ -78,18 +78,15 @@ function convertOldContainerParams(params: CompParams<any>) {
7878
if (tempParams.value) {
7979
const container = tempParams.value.container;
8080
// old params
81-
if (
82-
container &&
83-
(container.hasOwnProperty("layout") || container.hasOwnProperty("items"))
84-
) {
81+
if (container && (container.hasOwnProperty("layout") || container.hasOwnProperty("items"))) {
8582
const autoHeight = tempParams.value.autoHeight;
8683
const scrollbars = tempParams.value.scrollbars;
8784
return {
8885
...tempParams,
8986
value: {
9087
container: {
9188
showHeader: true,
92-
body: {0: {view: container}},
89+
body: { 0 : { view: container } },
9390
showBody: true,
9491
showFooter: false,
9592
autoHeight: autoHeight,
@@ -108,9 +105,7 @@ class ContainerTmpComp extends ContainerBaseComp {
108105
}
109106
}
110107

111-
export const ContainerComp = withExposingConfigs(ContainerTmpComp, [
112-
NameConfigHidden,
113-
]);
108+
export const ContainerComp = withExposingConfigs(ContainerTmpComp, [NameConfigHidden]);
114109

115110
type ContainerDataType = ToDataType<ContainerChildren<{}>>;
116111

0 commit comments

Comments
 (0)