1.0.4 • Published 2 years ago
@zqhexor/vueuse v1.0.4
@zqhexor/vueuse - vueuse 工具库
This is a collection of utility functions based on Composition API.
🍭 Support Vue 2 & Vue 3
💪 Written in TypeScript
🎪 Interactive docs & demos
Table of Contents
Background
This is a collection of utility functions based on Composition API.
Design
Getting Started
Prerequisites
Install
Use npm
:
npm install @zqhexor/vueuse --save
Use yarn
:
yarn add @zqhexor/vueuse --save
Usage
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👈