0.3.9 • Published 5 months ago

hyh-toolkit v0.3.9

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

hyh-toolkit

hyh-toolkit 是一个多功能工具库,集成了 Vite Plugin、Vue Hook、实用工具等,为开发提供便利。

如何搭建? 代码魔法:探秘背后的奇幻-NPM库世界

✨ 特性

  • 🏄🏼‍♂️ 易学易用
  • 📦 内置 Vite Plugin
  • 🛸 丰富的 Hooks
  • 🔨 内置常用工具函数
  • 🎯 使用 TypeScript 构建,提供完整的类型定义文件

📦 安装

npm i hyh-toolkit

🔨 使用

import { useVModel } from 'hyh-toolkit'

按需引入

import { useVModel } from 'hyh-toolkit/es/vue-hooks/useVModel'

自动引入

使用 unplugin-auto-import 的 resolver

Vite

import AutoImport from 'unplugin-auto-import/vite'
import { HyhToolkitResolvers } from 'hyh-toolkit/lib/resolvers'

export default defineConfig({
  plugins: [
    AutoImport({
      /* ... */
      resolvers: [HyhToolkitResolvers()]
    })
  ]
})

Webpack

const { defineConfig } = require('@vue/cli-service')
const { HyhToolkitResolvers } = require('hyh-toolkit/lib/resolvers')
const AutoImport = require('unplugin-auto-import/webpack')

module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack: {
    plugins: [
      AutoImport({
        /* ... */
        resolvers: [HyhToolkitResolvers()]
      })
    ]
  }
})

其他支持的工具, 更多请看 unplugin-auto-import

🧩 兼容

暂不支持 vue2

0.3.9

5 months ago

0.3.8

5 months ago

0.3.6

8 months ago

0.3.5

8 months ago

0.3.7

8 months ago

0.3.4

8 months ago

0.3.3

9 months ago

0.3.2

9 months ago

0.3.1

9 months ago

0.3.0

9 months ago

0.2.6

9 months ago

0.2.5

9 months ago

0.2.4

9 months ago

0.2.3

9 months ago

0.2.2

9 months ago

0.2.1

9 months ago

0.2.0

9 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.0

10 months ago

0.0.12

10 months ago

0.0.11

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago