This is a collection of utility functions based on Composition API.
🍭 Support Vue 2 & Vue 3
💪 Written in TypeScript
🎪 Interactive docs & demos
This is a collection of utility functions based on Composition API.
Use npm
:
npm install @zqhexor/vueuse --save
Use yarn
:
yarn add @zqhexor/vueuse --save
import { CHECKER_TYPE, useChecker } from '@zqhexor/vueuse';
const { checked, options, isActive, check } = useChecker({ type: CHECKER_TYPE.RADIO })
options.value = [{ value: 1, label: '选项1' }, { value: 2, label: '选项2' }]
For more examples, please refer to the 👉Documentation👈