From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/workflow/nodes/_base/components/input-number-with-slider.tsx | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/components/workflow/nodes/_base/components/input-number-with-slider.tsx b/app/components/workflow/nodes/_base/components/input-number-with-slider.tsx
index e0762df..c64f980 100644
--- a/app/components/workflow/nodes/_base/components/input-number-with-slider.tsx
+++ b/app/components/workflow/nodes/_base/components/input-number-with-slider.tsx
@@ -34,14 +34,14 @@
}, [defaultValue, max, min, onChange, value])
const handleChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
- onChange(Number.parseFloat(e.target.value))
+ onChange(parseFloat(e.target.value))
}, [onChange])
return (
- <div className='flex h-8 items-center justify-between space-x-2'>
+ <div className='flex justify-between items-center h-8 space-x-2'>
<input
value={value}
- className='block h-8 w-12 shrink-0 appearance-none rounded-lg bg-components-input-bg-normal pl-3 text-[13px] text-components-input-text-filled outline-none'
+ className='shrink-0 block pl-3 w-12 h-8 appearance-none outline-none rounded-lg bg-components-input-bg-normal text-[13px] text-components-input-text-filled'
type='number'
min={min}
max={max}
--
Gitblit v1.8.0