Skip to content

Commit 834c825

Browse files
refactored control buttons
1 parent 36de39c commit 834c825

File tree

4 files changed

+7
-17
lines changed

4 files changed

+7
-17
lines changed

client/packages/lowcoder/src/comps/comps/meetingComp/videoControlButton.tsx renamed to client/packages/lowcoder/src/comps/comps/meetingComp/controlButton.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -306,17 +306,7 @@ let ButtonTmpComp = (function () {
306306
{props.prefixIcon}
307307
</IconWrapper>
308308
)}
309-
{
310-
props.text ||
311-
(props.prefixIcon || props.suffixIcon ? undefined : " ") // Avoid button disappearing
312-
}
313-
{props.suffixIcon && (
314-
<IconWrapper
315-
$style={{ ...props.style, size: props.iconSize }}
316-
>
317-
{props.suffixIcon}
318-
</IconWrapper>
319-
)}
309+
320310
</Button100>
321311
</div>
322312
</Container>
@@ -369,7 +359,7 @@ ButtonTmpComp = class extends ButtonTmpComp {
369359
return this.children.autoHeight.getView();
370360
}
371361
};
372-
export const VideoControlButton = withExposingConfigs(ButtonTmpComp, [
362+
export const ControlButton = withExposingConfigs(ButtonTmpComp, [
373363
new NameConfig("text", trans("button.textDesc")),
374364
new NameConfig("loading", trans("button.loadingDesc")),
375365
...CommonNameConfig,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ import { AutoCompleteComp } from "./comps/autoCompleteComp/autoCompleteComp";
137137
import { JsonLottieComp } from "./comps/jsonComp/jsonLottieComp";
138138
import { ResponsiveLayoutComp } from "./comps/responsiveLayout";
139139
import { VideoMeetingStreamComp } from "./comps/meetingComp/videoMeetingStreamComp";
140-
import { VideoControlButton } from "./comps/meetingComp/videoControlButton";
140+
import { ControlButton } from "./comps/meetingComp/controlButton";
141141
import { VideoMeetingControllerComp } from "./comps/meetingComp/videoMeetingControllerComp";
142142

143143
type Registry = {
@@ -568,14 +568,14 @@ const uiCompMap: Registry = {
568568
comp: VideoMeetingStreamComp,
569569
withoutLoading: true,
570570
},
571-
meetingcontrols: {
571+
controlButton: {
572572
name: trans("meeting.meetingControlCompName"),
573573
enName: "Controls",
574574
description: trans("meeting.meetingCompDesc"),
575575
categories: ["meeting"],
576576
icon: ButtonCompIcon,
577577
keywords: trans("meeting.meetingCompKeywords"),
578-
comp: VideoControlButton,
578+
comp: ControlButton,
579579
withoutLoading: true,
580580
},
581581
tabbedContainer: {

client/packages/lowcoder/src/comps/uiCompRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export type UICompType =
5858
| "chart"
5959
| "meeting"
6060
| "videocomponent"
61-
| "meetingcontrols"
61+
| "controlButton"
6262
| "imageEditor"
6363
| "calendar"
6464
| "password"

client/packages/lowcoder/src/pages/editor/editorConstants.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const CompStateIcon: {
8686
container: <LeftContainer />,
8787
meeting: <LeftMeeting />,
8888
videocomponent: <LeftMeeting />,
89-
meetingcontrols: <LeftMeeting />,
89+
controlButton: <LeftMeeting />,
9090
tabbedContainer: <LeftContainer />,
9191
modal: <LeftModal />,
9292
listView: <LeftListView />,

0 commit comments

Comments
 (0)