Skip to content

Commit f50ce81

Browse files
committed
- Added tooltip to control BUtton
1 parent ae394c5 commit f50ce81

File tree

1 file changed

+45
-43
lines changed

1 file changed

+45
-43
lines changed

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

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -257,49 +257,51 @@ let ButtonTmpComp = (function () {
257257
: undefined
258258
}
259259
>
260-
<Button100
261-
ref={props.viewRef}
262-
$buttonStyle={props.style}
263-
loading={props.loading}
264-
style={
265-
props.autoHeight
266-
? {
267-
width: "100%",
268-
height: "100%",
269-
aspectRatio: props.aspectRatio,
270-
borderRadius: props.style.radius,
271-
}
272-
: {
273-
aspectRatio: props.aspectRatio,
274-
borderRadius: props.style.radius,
275-
}
276-
}
277-
disabled={
278-
props.disabled ||
279-
(!isDefault(props.type) &&
280-
getForm(editorState, props.form)?.disableSubmit())
281-
}
282-
onClick={() =>
283-
isDefault(props.type)
284-
? props.onEvent("click")
285-
: submitForm(editorState, props.form)
286-
}
287-
>
288-
{props.sourceMode === 'standard' && props.prefixIcon && (
289-
<IconWrapper
290-
$style={{ ...props.style, size: props.iconSize }}
291-
>
292-
{props.prefixIcon}
293-
</IconWrapper>
294-
)}
295-
{props.sourceMode === 'asset-library' && props.iconScoutAsset && (
296-
<IconScoutWrapper
297-
$style={{ ...props.style, size: props.iconSize }}
298-
>
299-
<img src={props.iconScoutAsset.value} />
300-
</IconScoutWrapper>
301-
)}
302-
</Button100>
260+
<Tooltip title={trans("meeting.meetingControlCompName")}>
261+
<Button100
262+
ref={props.viewRef}
263+
$buttonStyle={props.style}
264+
loading={props.loading}
265+
style={
266+
props.autoHeight
267+
? {
268+
width: "100%",
269+
height: "100%",
270+
aspectRatio: props.aspectRatio,
271+
borderRadius: props.style.radius,
272+
}
273+
: {
274+
aspectRatio: props.aspectRatio,
275+
borderRadius: props.style.radius,
276+
}
277+
}
278+
disabled={
279+
props.disabled ||
280+
(!isDefault(props.type) &&
281+
getForm(editorState, props.form)?.disableSubmit())
282+
}
283+
onClick={() =>
284+
isDefault(props.type)
285+
? props.onEvent("click")
286+
: submitForm(editorState, props.form)
287+
}
288+
>
289+
{props.sourceMode === 'standard' && props.prefixIcon && (
290+
<IconWrapper
291+
$style={{ ...props.style, size: props.iconSize }}
292+
>
293+
{props.prefixIcon}
294+
</IconWrapper>
295+
)}
296+
{props.sourceMode === 'asset-library' && props.iconScoutAsset && (
297+
<IconScoutWrapper
298+
$style={{ ...props.style, size: props.iconSize }}
299+
>
300+
<img src={props.iconScoutAsset.value} />
301+
</IconScoutWrapper>
302+
)}
303+
</Button100>
304+
</Tooltip>
303305
</div>
304306
</Container>
305307
)}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy