Skip to content

Commit 17072d3

Browse files
committed
formating removed-99
1 parent 8293a18 commit 17072d3

File tree

1 file changed

+13
-23
lines changed
  • client/packages/lowcoder/src/comps/comps/formComp

1 file changed

+13
-23
lines changed

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

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -204,46 +204,35 @@ const FormBaseComp = (function () {
204204
return (
205205
<>
206206
<Section name={sectionNames.basic}>
207-
{children.resetAfterSubmit.propertyView({
208-
label: trans('formComp.resetAfterSubmit'),
209-
})}
207+
{children.resetAfterSubmit.propertyView({ label: trans("formComp.resetAfterSubmit") })}
210208
</Section>
211209

212-
{(useContext(EditorContext).editorModeStatus === 'logic' ||
213-
useContext(EditorContext).editorModeStatus === 'both') && (
214-
<>
215-
<Section name={sectionNames.interaction}>
210+
{(useContext(EditorContext).editorModeStatus === "logic" || useContext(EditorContext).editorModeStatus === "both") && (
211+
<><Section name={sectionNames.interaction}>
216212
{children.onEvent.getPropertyView()}
217213
{disabledPropertyView(children)}
218-
{children.disableSubmit.propertyView({
219-
label: trans('formComp.disableSubmit'),
220-
})}
214+
{children.disableSubmit.propertyView({ label: trans("formComp.disableSubmit") })}
221215
{hiddenPropertyView(children)}
222216
{loadingPropertyView(children)}
223217
</Section>
224218
</>
225219
)}
226220

227-
{(useContext(EditorContext).editorModeStatus === 'layout' ||
228-
useContext(EditorContext).editorModeStatus === 'both') && (
221+
{(useContext(EditorContext).editorModeStatus === "layout" || useContext(EditorContext).editorModeStatus === "both") && (
229222
<>
230223
<Section name={sectionNames.layout}>
231224
{children.container.getPropertyView()}
232225
</Section>
233226
</>
234227
)}
235228

236-
{(useContext(EditorContext).editorModeStatus === 'logic' ||
237-
useContext(EditorContext).editorModeStatus === 'both') && (
229+
{(useContext(EditorContext).editorModeStatus === "logic" || useContext(EditorContext).editorModeStatus === "both") && (
238230
<Section name={sectionNames.advanced}>
239-
{children.initialData.propertyView({
240-
label: trans('formComp.initialData'),
241-
})}
231+
{children.initialData.propertyView({ label: trans("formComp.initialData") })}
242232
</Section>
243233
)}
244234

245-
{(useContext(EditorContext).editorModeStatus === 'layout' ||
246-
useContext(EditorContext).editorModeStatus === 'both') && (
235+
{(useContext(EditorContext).editorModeStatus === "layout" || useContext(EditorContext).editorModeStatus === "both") && (
247236
<>
248237
<Section name={sectionNames.style}>
249238
{children.container.stylePropertyView()}
@@ -252,8 +241,8 @@ const FormBaseComp = (function () {
252241
{children.animationStyle.getPropertyView()}
253242
</Section>
254243
{children.container.children.showHeader.getView() && (
255-
<Section name={'Header Style'}>
256-
{children.container.headerStylePropertyView()}
244+
<Section name={"Header Style"}>
245+
{ children.container.headerStylePropertyView() }
257246
</Section>
258247
)}
259248
{children.container.children.showBody.getView() && (
@@ -262,12 +251,13 @@ const FormBaseComp = (function () {
262251
</Section>
263252
)}
264253
{children.container.children.showFooter.getView() && (
265-
<Section name={'Footer Style'}>
266-
{children.container.footerStylePropertyView()}
254+
<Section name={"Footer Style"}>
255+
{ children.container.footerStylePropertyView() }
267256
</Section>
268257
)}
269258
</>
270259
)}
260+
271261
</>
272262
);
273263
})

0 commit comments

Comments
 (0)