Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A collection of vue composition-api utilities.

License

NotificationsYou must be signed in to change notification settings

vueblocks/vue-use-utilities

Repository files navigation


NPMNPM DownloadsupportMinzipped SizelernaOpenBaseLicense

Vue Use Utilities build on top ofvue-demi &@vue/compostion-api. It works both for Vue 2 & 3.


✨ Features

  • 🛠 Composable Utilities
  • 🌳 TreeShakable & SideEffects Free, Check outBundle Phobia
  • 💪 Fully Typed APIs
  • 🤟 Vue 2 and 3 Support
  • 🧩 Advanced Integration

📦 Installation

# 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

🦄️ Demos

Vue 2 Demo:Vue CLI 2.x | Vue 3 Demo:Vue CLI 3.x

💡 Usage

<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}}  ...}

📖 Documentation

Check ourdocumentation

🧩 Integration

The Integration part provide utilities for commonly used libraries.

Vuex

@vueblocks/vue-use-vuex - Use Vuex With Composition API Easily.

useVuex

  • useState - same asmapState
  • useGetters - same asmapGetters
  • useMutations - same asmapMutations
  • useActions - same asmapActions

useStore

  • useStore - same as Vuex 4.x composition apiuseStore

Read Docs

Axios

@vueblocks/vue-use-axios - Use Axios with Compositon API Easily.

  • useAxios - is a wrapper of axios

Read Docs

Thanks

📄 License

MIT@xiaoluoboding

Sponsor this project

 

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp