Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4ab8986

Browse files
committed
Added tooltips for checkboxes
1 parentf50ce81 commit4ab8986

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎client/packages/lowcoder/src/comps/comps/selectInputComp/checkboxComp.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { trans } from "i18n";
2424
import{RefControl}from"comps/controls/refControl";
2525
import{migrateOldData}from"comps/generators/simpleGenerators";
2626
import{fixOldInputCompData}from"../textInputComp/textInputConstants";
27+
importTooltipfrom"antd/es/tooltip";
2728

2829
exportconstgetStyle=(style:CheckboxStyleType)=>{
2930
returncss`
@@ -182,7 +183,11 @@ let CheckboxBasicComp = (function () {
182183
options={props.options
183184
.filter((option)=>option.value!==undefined&&!option.hidden)
184185
.map((option)=>({
185-
label:option.label,
186+
label:(
187+
<Tooltiptitle={option.label}>
188+
<span>{option.label}</span>
189+
</Tooltip>
190+
),
186191
value:option.value,
187192
disabled:option.disabled,
188193
}))}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp