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

Commit 8974731

Browse files
Fix merge conflicts
1 parent 2d87d6b commit 8974731

File tree

2 files changed

+13
-19
lines changed

2 files changed

+13
-19
lines changed

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

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const MemoizedCheckboxGroup = memo(({
156156
disabled: boolean;
157157
style: CheckboxStyleType;
158158
layout: ValueFromOption<typeof RadioLayoutOptions>;
159-
options: Array<{ label: string; value: string; disabled?: boolean }>;
159+
options: Array<{ label: any; value: string; disabled?: boolean }>;
160160
onChange: (values: string[]) => void;
161161
viewRef: React.Ref<HTMLDivElement>;
162162
tabIndex?: number
@@ -231,7 +231,11 @@ let CheckboxBasicComp = (function () {
231231
return props.options
232232
.filter((option) => option.value !== undefined && !option.hidden)
233233
.map((option) => ({
234-
label: option.label,
234+
label: (
235+
<Tooltip title={option.label}>
236+
<span>{option.label}</span>
237+
</Tooltip>
238+
),
235239
value: option.value,
236240
disabled: option.disabled,
237241
}));
@@ -249,15 +253,7 @@ let CheckboxBasicComp = (function () {
249253
disabled={props.disabled}
250254
style={props.inputFieldStyle}
251255
layout={props.layout}
252-
options={filteredOptions()
253-
.map((option) => ({
254-
label: (
255-
<Tooltip title={option.label}>
256-
<span>{option.label}</span>
257-
</Tooltip>
258-
)
259-
})
260-
)}
256+
options={filteredOptions()}
261257
onChange={handleValidateChange}
262258
viewRef={props.viewRef}
263259
tabIndex={typeof props.tabIndex === 'number' ? props.tabIndex : undefined}

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,11 @@ const MemoizedRadio = memo(({
134134
return options
135135
.filter((option) => option.value !== undefined && !option.hidden)
136136
.map((option) => ({
137-
label: option.label,
137+
label: (
138+
<Tooltip title={option.label}>
139+
<span>{option.label}</span>
140+
</Tooltip>
141+
),
138142
value: option.value,
139143
disabled: option.disabled,
140144
}));
@@ -196,13 +200,7 @@ let RadioBasicComp = (function () {
196200
style={props.style}
197201
inputFieldStyle={props.inputFieldStyle}
198202
layout={props.layout}
199-
options={props.options.map((option) => ({
200-
label: (
201-
<Tooltip title={option.label}>
202-
<span>{option.label}</span>
203-
</Tooltip>
204-
)}
205-
))}
203+
options={props.options}
206204
onChange={handleValidateChange}
207205
viewRef={(el) => {
208206
if (!mountedRef.current) return;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /