2.2.1 • Published 11 months ago

vue-hooks-plus v2.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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

Alt

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

2.2.1

11 months ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.9.0

1 year ago

1.8.9

1 year ago

1.8.8

1 year ago

1.8.7

1 year ago

1.8.6

2 years ago

1.8.5

2 years ago

1.8.2

2 years ago

1.8.1

2 years ago

1.8.0

2 years ago

1.7.7-alpha.4

2 years ago

1.7.7-alpha.3

2 years ago

1.7.7-alpha.2

2 years ago

1.7.7-alpha.1

2 years ago

1.7.6

2 years ago

1.7.5

2 years ago

1.7.4

2 years ago

1.7.3

2 years ago

1.7.2

2 years ago

1.7.1

2 years ago

1.8.4

2 years ago

1.8.3

2 years ago

1.6.4

2 years ago

1.6.3

2 years ago

1.6.2

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.7.0

2 years ago

1.6.0-alpha.1

2 years ago

1.6.0-alpha.5

2 years ago

1.6.0-alpha.4

2 years ago

1.6.0-alpha.3

2 years ago

1.6.0-alpha.2

2 years ago

1.6.0-alpha.8

2 years ago

1.6.0-alpha.7

2 years ago

1.6.0-alpha.6

2 years ago

1.6.5

2 years ago

1.5.2-beta1.0

2 years ago

1.3.6-alpha.1

3 years ago

1.4.6

2 years ago

1.4.5

2 years ago

1.3.6

3 years ago

1.4.4

2 years ago

1.3.5

3 years ago

1.5.2

2 years ago

1.4.3

2 years ago

1.3.4

3 years ago

1.5.1

2 years ago

1.4.2

3 years ago

1.5.0

2 years ago

1.4.2-beta

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.4.7

2 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.3.3

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.3.1

3 years ago

1.1.3

3 years ago

1.3.0

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago