mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 04:18:29 +08:00
修复range value为0时,自动转为最小值的问题
This commit is contained in:
parent
257e3a972a
commit
94531dd418
@ -68,7 +68,7 @@ export function formatValue(
|
||||
};
|
||||
}
|
||||
}
|
||||
return value || props.min;
|
||||
return value ?? props.min;
|
||||
}
|
||||
|
||||
type PropsWithDefaults = RangeProps & DefaultProps;
|
||||
|
Loading…
Reference in New Issue
Block a user