Skip to content

useAbs

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

反应性 Math.abs

🌐 Reactive Math.abs.

用法

🌐 Usage

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