logicOr
Category
Export Size
148 B
Package
@vueuse/math
Last Changed
3 hours ago
Alias
or
Related
OR
条件的响应式封装。
用法
ts
import { whenever } from '@vueuse/core'
import { logicOr } from '@vueuse/math'
const a = ref(true)
const b = ref(false)
whenever(logicOr(a, b), () => {
console.log('a 或 b 为 true')
})
Type Declarations
typescript
/**
* `OR` conditions for refs.
*
* @see https://vueuse.org/logicOr
*/
export declare function logicOr(
...args: MaybeRefOrGetter<any>[]
): ComputedRef<boolean>
export { logicOr as or }