logicNot
Category
Export Size
141 B
Package
@vueuse/math
Last Changed
3 hours ago
Alias
not
Related
NOT
条件的响应式封装。
用法
ts
import { whenever } from '@vueuse/core'
import { logicNot } from '@vueuse/math'
const a = ref(true)
whenever(logicNot(a), () => {
console.log('a 现在是 false!')
})
Type Declarations
typescript
/**
* `NOT` conditions for refs.
*
* @see https://vueuse.org/logicNot
*/
export declare function logicNot(v: MaybeRefOrGetter<any>): ComputedRef<boolean>
export { logicNot as not }