Skip to content

Commit a91f142

Browse files
fixed meeting bug on lowcoder-comp
1 parent 0e982fa commit a91f142

File tree

11 files changed

+247
-1566
lines changed

11 files changed

+247
-1566
lines changed

client/packages/lowcoder/src/base/codeEditor/autoFormat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function htmlFormatter(text: string) {
1414
const prettier = await require("prettier/standalone");
1515
const parserPlugin = await require("prettier/parser-html");
1616
return (await prettier.format(text, { parser: "html", plugins: [parserPlugin], semi: false })).trim();
17-
}
17+
}
1818

1919
async function getJavascriptFormatter() {
2020
const prettier = await require("prettier/standalone");

client/packages/lowcoder/src/comps/comps/meetingComp/controlButton.tsx

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ import {
2828
} from "../../generators/withExposing";
2929
import { IForm } from "../formComp/formDataConstants";
3030
import { SimpleNameComp } from "../simpleNameComp";
31-
import {
32-
Button100,
33-
ButtonStyleControl,
34-
} from "./videobuttonCompConstants";
31+
import { Button100, ButtonStyleControl } from "./videobuttonCompConstants";
3532
import { RefControl } from "comps/controls/refControl";
3633
import { AutoHeightControl } from "comps/controls/autoHeightControl";
3734
import {
@@ -247,16 +244,16 @@ let ButtonTmpComp = (function () {
247244
loading={props.loading}
248245
style={
249246
props.autoHeight
250-
? {
251-
width: "100%",
252-
height: "100%",
253-
aspectRatio: props.aspectRatio,
254-
borderRadius: props.style.radius,
255-
}
247+
? {
248+
width: "100%",
249+
height: "100%",
250+
aspectRatio: props.aspectRatio,
251+
borderRadius: props.style.radius,
252+
}
256253
: {
257-
aspectRatio: props.aspectRatio,
258-
borderRadius: props.style.radius,
259-
}
254+
aspectRatio: props.aspectRatio,
255+
borderRadius: props.style.radius,
256+
}
260257
}
261258
disabled={
262259
props.disabled ||
@@ -276,7 +273,6 @@ let ButtonTmpComp = (function () {
276273
{props.prefixIcon}
277274
</IconWrapper>
278275
)}
279-
280276
</Button100>
281277
</div>
282278
</Container>
@@ -293,8 +289,8 @@ let ButtonTmpComp = (function () {
293289
})}
294290
</Section>
295291

296-
297-
{(useContext(EditorContext).editorModeStatus === "logic" || useContext(EditorContext).editorModeStatus === "both") && (
292+
{(useContext(EditorContext).editorModeStatus === "logic" ||
293+
useContext(EditorContext).editorModeStatus === "both") && (
298294
<Section name={sectionNames.interaction}>
299295
{children.onEvent.getPropertyView()}
300296
{disabledPropertyView(children)}
@@ -303,19 +299,22 @@ let ButtonTmpComp = (function () {
303299
</Section>
304300
)}
305301

306-
{(useContext(EditorContext).editorModeStatus === "layout" || useContext(EditorContext).editorModeStatus === "both") && (
307-
<><Section name={sectionNames.layout}>
302+
{(useContext(EditorContext).editorModeStatus === "layout" ||
303+
useContext(EditorContext).editorModeStatus === "both") && (
304+
<>
305+
<Section name={sectionNames.layout}>
308306
{children.autoHeight.getPropertyView()}
309307
{children.iconSize.propertyView({
310308
label: trans("button.iconSize"),
311309
})}
312310
</Section>
313311
<Section name={sectionNames.style}>
314-
{children.style.getPropertyView()}
315-
{children.aspectRatio.propertyView({
316-
label: trans("style.aspectRatio"),
317-
})}
318-
</Section></>
312+
{children.style.getPropertyView()}
313+
{children.aspectRatio.propertyView({
314+
label: trans("style.aspectRatio"),
315+
})}
316+
</Section>
317+
</>
319318
)}
320319
</>
321320
))

client/packages/lowcoder/src/comps/comps/meetingComp/meetingControlerUtils.tsx

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)