Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork4
A collection of vue composition-api utilities.
License
NotificationsYou must be signed in to change notification settings
vueblocks/vue-use-utilities
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Vue Use Utilities build on top ofvue-demi &@vue/compostion-api. It works both for Vue 2 & 3.
- 🛠 Composable Utilities
- 🌳 TreeShakable & SideEffects Free, Check outBundle Phobia
- 💪 Fully Typed APIs
- 🤟 Vue 2 and 3 Support
- 🧩 Advanced Integration
# Vue 2 with @vue/composition-apiyarn add @vue/composition-api @vueblocks/vue-use-core -Sornpm i @vue/composition-api @vueblocks/vue-use-core -S# Vue 3yarn add @vueblocks/vue-use-core -Sornpm i @vueblocks/vue-use-core -S
Vue 2 Demo:Vue CLI 2.x | Vue 3 Demo:Vue CLI 3.x
<inputv-model="searchVal"/>
import{useDebouncedRef}from'@vueblocks/vue-use-core'exportdefault{ ...setup(){constsearchVal=useDebouncedRef('',500)// mock use inputsearchVal.value='x'searchVal.value='xi'searchVal.value='xia'searchVal.value='xiao'return{ searchVal}} ...}
Check ourdocumentation
The Integration part provide utilities for commonly used libraries.
@vueblocks/vue-use-vuex - Use Vuex With Composition API Easily.
useState- same asmapStateuseGetters- same asmapGettersuseMutations- same asmapMutationsuseActions- same asmapActions
useStore- same as Vuex 4.x composition apiuseStore
@vueblocks/vue-use-axios - Use Axios with Compositon API Easily.
useAxios- is a wrapper of axios
About
A collection of vue composition-api utilities.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published