Merge branch 'jskim-node' of http://39.117.244.52:3000/kjs/ERP-node into gbpark-node

; Please enter a commit message to explain why this merge is necessary,
; especially if it merges an updated upstream into a topic branch.
;
; Lines starting with ';' will be ignored, and an empty message aborts
; the commit.
This commit is contained in:
DDD1542
2026-02-12 16:33:00 +09:00
13 changed files with 1668 additions and 223 deletions

View File

@@ -780,9 +780,15 @@ export const V2Input = forwardRef<HTMLDivElement, V2InputProps>((props, ref) =>
);
case "number":
// DB에서 문자열("325")로 반환되는 경우도 숫자로 변환하여 표시
const numValue = typeof displayValue === "number"
? displayValue
: (displayValue !== undefined && displayValue !== null && displayValue !== "" && !isNaN(Number(displayValue)))
? Number(displayValue)
: undefined;
return (
<NumberInput
value={typeof displayValue === "number" ? displayValue : undefined}
value={numValue}
onChange={(v) => {
setAutoGeneratedValue(null);
onChange?.(v ?? 0);
@@ -813,9 +819,15 @@ export const V2Input = forwardRef<HTMLDivElement, V2InputProps>((props, ref) =>
);
case "slider":
// DB에서 문자열로 반환되는 경우도 숫자로 변환
const sliderValue = typeof displayValue === "number"
? displayValue
: (displayValue !== undefined && displayValue !== null && displayValue !== "" && !isNaN(Number(displayValue)))
? Number(displayValue)
: (config.min ?? 0);
return (
<SliderInput
value={typeof displayValue === "number" ? displayValue : (config.min ?? 0)}
value={sliderValue}
onChange={(v) => {
setAutoGeneratedValue(null);
onChange?.(v);