Skip to content

Commit db2c65d

Browse files
committed
formating removed-36
1 parent 1d1b80d commit db2c65d

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

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

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,23 @@ export const ContainerBaseComp = (function () {
6565
{children.container.children.showSider.getView() && (
6666
<Section name={"Sider Style"}>
6767
{ children.container.siderStylePropertyView() }
68-
</Section>
68+
</Section>
6969
)}
7070
<Section name={"Body Style"}>
7171
{ children.container.bodyStylePropertyView() }
7272
</Section>
7373
{children.container.children.showFooter.getView() && (
7474
<Section name={"Footer Style"}>
7575
{ children.container.footerStylePropertyView() }
76-
</Section>
76+
</Section>
7777
)}
7878
</>
7979
)}
8080
</>
8181
);
8282
})
8383
.build();
84-
})();
84+
})();
8585

8686
// Compatible with old data
8787
function convertOldContainerParams(params: CompParams<any>) {
@@ -91,18 +91,15 @@ function convertOldContainerParams(params: CompParams<any>) {
9191
if (tempParams.value) {
9292
const container = tempParams.value.container;
9393
// old params
94-
if (
95-
container &&
96-
(container.hasOwnProperty("layout") || container.hasOwnProperty("items"))
97-
) {
94+
if (container && (container.hasOwnProperty("layout") || container.hasOwnProperty("items"))) {
9895
const autoHeight = tempParams.value.autoHeight;
9996
const scrollbars = tempParams.value.scrollbars;
10097
return {
10198
...tempParams,
10299
value: {
103100
container: {
104101
showHeader: true,
105-
body: {0: {view: container}},
102+
body: { 0: { view: container } },
106103
showFooter: false,
107104
showSider: true,
108105
autoHeight: autoHeight,
@@ -115,6 +112,7 @@ function convertOldContainerParams(params: CompParams<any>) {
115112
return tempParams;
116113
}
117114

115+
118116
class ContainerTmpComp extends ContainerBaseComp {
119117
constructor(params: CompParams<any>) {
120118
super(convertOldContainerParams(params));
@@ -128,28 +126,26 @@ const PageLayoutCompTmP = withExposingConfigs(ContainerTmpComp, [
128126
new NameConfig("container", trans("export.ratingValueDesc")),
129127
new CompDepsConfig(
130128
"siderCollapsed",
131-
(comp) => ({
132-
data: comp.children.container.children.siderCollapsed.nodeWithoutCache(),
133-
}),
134-
(input) => input.data.value,
135-
trans("listView.itemsDesc")
129+
(comp) => ({ data : comp.children.container.children.siderCollapsed.nodeWithoutCache()}),
130+
(input) => input.data.value, trans("listView.itemsDesc")
136131
),
137132
]);
138133

139134
export const PageLayoutComp = withMethodExposing(PageLayoutCompTmP, [
135+
140136
{
141137
method: {
142138
name: "setSiderCollapsed",
143139
description: "Set the Sider of the PageLayout to be collapsed or not",
144-
params: [{name: "collapsed", type: "boolean"}],
140+
params: [{ name: "collapsed", type: "boolean" }],
145141
},
146142
execute: (comp, values) => {
147143
const page = values[0] as number;
148144
if (page && page > 0) {
149145
// comp.children.pagination.children.pageNo.dispatchChangeValueAction(page);
150146
}
151147
},
152-
},
148+
}
153149
]);
154150

155151
type ContainerDataType = ToDataType<ContainerChildren<{}>>;

0 commit comments

Comments
 (0)