mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 03:18:16 +08:00
Merge pull request #704 from RickCole21/master
修复range value为0时,自动转为最小值的问题
This commit is contained in:
commit
17c81f339c
@ -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