next-helios-fe 1.8.101 → 1.8.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -70,9 +70,9 @@ export const Range: React.FC<RangeProps> = ({
|
|
70
70
|
{...rest}
|
71
71
|
/>
|
72
72
|
{!options?.hideInputDetail &&
|
73
|
-
(
|
73
|
+
(rest.value === 0 || rest.value || inputRef.current?.value) && (
|
74
74
|
<span className="w-7 text-right">
|
75
|
-
{
|
75
|
+
{rest.value === 0 ? 0 : rest.value || inputRef.current?.value}
|
76
76
|
</span>
|
77
77
|
)}
|
78
78
|
</div>
|
@@ -19,6 +19,7 @@ export interface MultipleSelectProps
|
|
19
19
|
label?: string;
|
20
20
|
placeholder?: string;
|
21
21
|
description?: string;
|
22
|
+
labelComponent?: (e?: any) => React.ReactNode;
|
22
23
|
options?: {
|
23
24
|
width?: "full" | "fit";
|
24
25
|
height?: "short" | "medium" | "high";
|
@@ -51,6 +52,7 @@ export const MultipleSelect: React.FC<MultipleSelectProps> = ({
|
|
51
52
|
menus,
|
52
53
|
placeholder,
|
53
54
|
description,
|
55
|
+
labelComponent,
|
54
56
|
required,
|
55
57
|
disabled,
|
56
58
|
value,
|
@@ -296,12 +298,13 @@ export const MultipleSelect: React.FC<MultipleSelectProps> = ({
|
|
296
298
|
}
|
297
299
|
}}
|
298
300
|
>
|
299
|
-
<
|
301
|
+
<div
|
300
302
|
className="flex justify-between items-center gap-4"
|
301
303
|
style={{ width: dropdownWidth - 43 }}
|
302
304
|
>
|
303
|
-
{item.label}
|
304
|
-
|
305
|
+
<span>{item.label}</span>
|
306
|
+
{labelComponent ? labelComponent(item) : ""}
|
307
|
+
</div>
|
305
308
|
</Dropdown.Item>
|
306
309
|
);
|
307
310
|
})
|