Skip to content

useAbs ​

类别
导出大小
90 B
包
@vueuse/math
最近修改
7 months ago

反应性 Math.abs。

🌐 Reactive Math.abs.

用法 ​

🌐 Usage

ts
import { 
useAbs
} from '@vueuse/math'
const
value
=
ref
(-23)
const
absValue
=
useAbs
(
value
) // Ref<23>