vue-hooks-plus
VueHooks Plus
English | 简体中文
High performance & Simplicity Vue3 Hooks library
✨ Features
- 🏄🏼♂️ Easy to learn and use
- 🔋 Supports SSR
- 🛸 Contains a comprehensive collection of basic Hooks
- 🏟️ A wide range of application scenarios
- 🦾 Preferred useRequest, Powerful request middle tier
- 🎪 Interactive demo, immersive
- 🎯 Written in TypeScript with predictable static types
- 🪄 Support the on-demand load, and reduce the packing volume
- 🤺 Playground, there's ample scope for one's abilities
- 🔐 Perfect test, safe and reliable
📦 Install
npm i vue-hooks-plus
CDN
<script src="https://cdn.jsdelivr.net/npm/vue-hooks-plus/dist/js/index.iife.js"></script>
It will be exposed to global as VueHooks_Plus
🤹♀️ Usage
import { useRequest } from 'vue-hooks-plus'
Introduced on demand
import useRequest from 'vue-hooks-plus/es/useRequest'
Auto Import
import AutoImport from 'unplugin-auto-import/vite'
import { VueHooksPlusResolver } from '@vue-hooks-plus/resolvers'
export const AutoImportDeps = () =>
AutoImport({
imports: ['vue', 'vue-router'],
include: [/\.[tj]sx?$/, /\.vue$/, /\.vue\?vue/, /\.md$/],
dts: 'src/auto-imports.d.ts',
resolvers: [VueHooksPlusResolver()],
})
const { VueHooksPlusResolver } = require('@vue-hooks-plus/resolvers')
module.exports = {
/* ... */
plugins: [
require('unplugin-auto-import/webpack')({
imports: ['vue', 'vue-router'],
include: [/\.[tj]sx?$/, /\.vue$/, /\.vue\?vue/, /\.md$/],
dts: 'src/auto-imports.d.ts',
resolvers: [VueHooksPlusResolver()],
}),
],
}
For other supported tools, please see unplugin-auto-import
Globalization Documentations
Example
🤩 Awesome
Template
🪴 Project Activity
Contributing
Welcome to join us! You can check out the Contributing Guide to learn how to get started.
Contributors
Thanks for all their contributions 🐝 !
🌸 Thanks
This project is heavily inspired by the following awesome projects.
📄 License
MIT License © 2022-PRESENT YongGit
Related Packages
embla-carousel-vue
A lightweight carousel library with fluid motion and great swipe precision
21,814,304
8,459
Version History
| Version | Released | License |
|---|---|---|
| 2.4.3 | MIT | |
| 2.4.2 | MIT | |
| 2.4.1 | MIT | |
| 2.4.0 | MIT | |
| 2.3.1 | MIT | |
| 2.3.0 | MIT | |
| 2.2.4 | MIT | |
| 2.2.3 | MIT | |
| 2.2.1 | MIT | |
| 2.2.0 | MIT | |
| 2.1.0 | MIT | |
| 2.0.3 | MIT | |
| 2.0.2 | MIT | |
| 2.0.1 | MIT | |
| 2.0.0 | MIT | |
| 1.9.0 | MIT | |
| 1.8.9 | MIT | |
| 1.8.8 | MIT | |
| 1.8.7 | MIT | |
| 1.8.6 | MIT | |
| 1.8.5 | MIT | |
| 1.8.4 | MIT | |
| 1.8.3 | MIT | |
| 1.8.2 | MIT | |
| 1.8.1 | MIT | |
| 1.8.0 | MIT | |
| 1.7.6 | MIT | |
| 1.7.5 | MIT | |
| 1.7.4 | MIT | |
| 1.7.3 | MIT |
Showing the latest 30 of 78. See every release on npm
Pre-releases (31)
| Version | Released | License |
|---|---|---|
| 2.4.0-beta.2 | MIT | |
| 2.4.0-beta.1 | MIT | |
| 2.4.0-alpha.5 | MIT | |
| 2.4.0-alpha.4 | MIT | |
| 2.4.0-alpha.3 | MIT | |
| 2.4.0-alpha.2 | MIT | |
| 2.4.0-alpha.1 | MIT | |
| 2.3.0-beta.9 | MIT | |
| 2.3.0-beta.8 | MIT | |
| 2.3.0-beta.7 | MIT | |
| 2.3.0-beta.6 | MIT | |
| 2.3.0-beta.5 | MIT | |
| 2.3.0-beta.4 | MIT | |
| 2.3.0-beta.3 | MIT | |
| 2.3.0-beta.2 | MIT | |
| 2.3.0-beta.1 | MIT | |
| 1.7.7-alpha.4 | MIT | |
| 1.7.7-alpha.3 | MIT | |
| 1.7.7-alpha.2 | MIT | |
| 1.7.7-alpha.1 | MIT | |
| 1.6.0-alpha.8 | MIT | |
| 1.6.0-alpha.7 | MIT | |
| 1.6.0-alpha.6 | MIT | |
| 1.6.0-alpha.5 | MIT | |
| 1.6.0-alpha.4 | MIT | |
| 1.6.0-alpha.3 | MIT | |
| 1.6.0-alpha.2 | MIT | |
| 1.6.0-alpha.1 | MIT | |
| 1.5.2-beta1.0 | MIT | |
| 1.4.2-beta | MIT |
Showing the latest 30 of 31. See every release on npm