fix: support six-decimal steps in model pricing editor

This commit is contained in:
yyhhyyyyyy
2026-06-05 17:24:33 +08:00
parent 32805849d6
commit e8c36762fd
@@ -522,7 +522,7 @@ function PriceField({ label, hint, value, onChange }: PriceFieldProps) {
<Label className='text-muted-foreground text-xs'>{label}</Label>
<DraftNumberInput
min={0}
step={0.01}
step={0.000001}
value={Number.isFinite(value) ? value : 0}
onValueChange={onChange}
className='h-8 w-full'
@@ -1276,7 +1276,7 @@ function RuleGroupCard({
<Label className='text-xs'>{t('Multiplier')}</Label>
<DraftNumberInput
min={0}
step={0.01}
step={0.000001}
value={group.multiplier}
onValueChange={(value) =>
onChange({ ...group, multiplier: String(value) })