mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 03:18:16 +08:00
commit
c87f13c211
@ -166,7 +166,7 @@ export const filters: {
|
||||
},
|
||||
duration: input => (input ? formatDuration(input) : input),
|
||||
bytes: input => (input ? prettyBytes(parseFloat(input)) : input),
|
||||
round: (input, decimals = 0) => {
|
||||
round: (input, decimals = 2) => {
|
||||
if (isNaN(input)) {
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user