Skip to content

useRound

类别
导出大小
92 B
@vueuse/math
最近修改
2 days ago

反应性 Math.round

🌐 Reactive Math.round.

用法

🌐 Usage

ts
import { 
useRound
} from '@vueuse/math'
const
value
=
ref
(20.49)
const
result
=
useRound
(
value
) // 20