1.9.0 • Published 7 days ago

vue-hooks-plus v1.9.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 days 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

1.9.0

7 days ago

1.8.9

2 months ago

1.8.8

4 months ago

1.8.7

4 months ago

1.8.6

6 months ago

1.8.5

7 months ago

1.8.2

8 months ago

1.8.1

9 months ago

1.8.0

9 months ago

1.7.7-alpha.4

10 months ago

1.7.7-alpha.3

10 months ago

1.7.7-alpha.2

10 months ago

1.7.7-alpha.1

10 months ago

1.7.6

11 months ago

1.7.5

11 months ago

1.7.4

11 months ago

1.7.3

11 months ago

1.7.2

11 months ago

1.7.1

11 months ago

1.8.4

7 months ago

1.8.3

7 months ago

1.6.4

1 year ago

1.6.3

1 year ago

1.6.2

1 year ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.5

1 year ago

1.5.4

1 year ago

1.5.3

1 year ago

1.7.0

12 months ago

1.6.0-alpha.1

1 year ago

1.6.0-alpha.5

1 year ago

1.6.0-alpha.4

1 year ago

1.6.0-alpha.3

1 year ago

1.6.0-alpha.2

1 year ago

1.6.0-alpha.8

1 year ago

1.6.0-alpha.7

1 year ago

1.6.0-alpha.6

1 year ago

1.6.5

1 year ago

1.5.2-beta1.0

1 year ago

1.3.6-alpha.1

1 year ago

1.4.6

1 year ago

1.4.5

1 year ago

1.3.6

2 years ago

1.4.4

1 year ago

1.3.5

2 years ago

1.5.2

1 year ago

1.4.3

1 year ago

1.3.4

2 years ago

1.5.1

1 year ago

1.4.2

1 year ago

1.5.0

1 year ago

1.4.2-beta

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.4.7

1 year ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.3.3

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.3.1

2 years ago

1.1.3

2 years ago

1.3.0

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago