npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

antdv3-libs

v1.0.11

Published

一个基于 Ant Design Vue 4.x 的 Vue 3 组件库,包含常用UI组件和工具函数

Readme

antdv3-libs

一个基于 Ant Design Vue 4.x 的 Vue 3 组件库,包含常用组件、指令、过滤器和工具函数,提供完整的 Pinia 状态管理支持。

功能特性

  • 丰富的 UI 组件(表格、表单、菜单等)
  • 集成 Pinia 状态管理,包含权限管理 store
  • 实用的指令(权限控制、拖拽等)
  • 常用过滤器和工具函数
  • 统一的样式主题

在项目中使用

1. 安装依赖

# 方式1:从 npm 安装
npm install antdv3-libs

# 方式2:从 yarn 安装
yarn add antdv3-libs

2. 全局注册(main.js)

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import { default as antdv3Libs } from 'antdv3-libs' // 导入组件库
import 'antdv3-libs/dist/style.css' // 导入样式文件

const app = createApp(App)
const pinia = createPinia()

// 方式1:使用自定义的 pinia 实例(推荐)
app.use(pinia)
app.use(antdv3Libs, { pinia }) // 传递 pinia 实例给组件库

// 方式2:使用组件库内置的 pinia 实例
// app.use(antdv3Libs)

app.mount('#app')

3. 单独导入组件(ES 模块)

import {
  axTable,
  axForm,
  axUploadModal,
  getPermissionsStore,
  pinia,
} from 'antdv3-libs'
import 'antdv3-libs/dist/style.css'
import { getCurrentInstance } from 'vue'

export default {
  components: {
    axTable,
    axForm,
    axUploadModal,
  },
  setup() {
    // 方式1:通过当前实例获取pinia
    const instance = getCurrentInstance()
    const permissionsStore = getPermissionsStore(
      instance.appContext.config.globalProperties.$pinia
    )

    // 方式2:如果已经通过app.use(antdv3Libs, { pinia })注册,可以直接使用传入的pinia
    // const permissionsStore = getPermissionsStore(pinia)

    // 使用组件和 store...
    return {
      // 返回组件和方法
    }
  },
}

项目版本

1.0.11 (2025-11-3)

  • 优化 v-drag-modal 指令
  • 优化 axUploadModal 组件
  • 优化 axTable 组件

1.0.0 (2025-10-28)

  • 初始化项目
  • 添加基础组件和工具
  • 集成 Pinia 状态管理
  • 添加权限管理功能