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

@antdv-next/nuxt

v1.0.4

Published

Antdv Next Nuxt module

Readme

Antdv Next Nuxt

Antdv NextNuxt 模块

English

特性

  • 自动将 antdv-next 组件注册为全局 Nuxt 组件。
  • 可选自动注册 @antdv-next/icons 图标组件。
  • 支持组件前缀(默认 A),例如 AButton
  • 内置 SSR 场景下的 CSS-in-JS 上下文与服务端样式提取。
  • 使用 Vite Builder 时自动注入 vite-plugin-dayjs

版本要求

  • Nuxt >= 4.0.0
  • Vue >= 3.5.0
  • antdv-next >= 1.0.4
  • @antdv-next/icons >= 1.0.1

安装

npx nuxi@latest module add @antdv-next/nuxt
# 或
pnpm add -D @antdv-next/nuxt antdv-next @antdv-next/icons

配置

export default defineNuxtConfig({
  modules: ['@antdv-next/nuxt'],
  antd: {
    icon: true,
  },
})

@antdv-next/nuxtnuxt.config 中的配置键是 antd

使用

<template>
  <a-button type="primary">Primary</a-button>
  <HomeOutlined />
</template>

如果保持默认前缀,组件会注册成 A*,例如 AButtonATableAQrcode

样式

基础重置样式:

export default defineNuxtConfig({
  css: ['antdv-next/dist/reset.css'],
})

如果使用 zero-runtime 主题模式(推荐模式),还需要引入:

export default defineNuxtConfig({
  css: [
    'antdv-next/dist/reset.css',
    'antdv-next/dist/antd.css',
  ],
})

[!WARNING] 如果开启了 nuxt devtools,开发模式下的样式加载可能会变慢。
如果你遇到样式加载过慢或页面暂时无法正常点击的情况,请先尝试关闭 nuxt devtools,或等待 console 中相关加载完成后再操作。

该问题不会影响正常预编译开发流程,也不会影响生产环境。

选项

| 选项 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | icon | boolean | false | 是否自动注册 @antdv-next/icons 图标组件。 | | prefix | string | 'A' | 自动注册组件的前缀。 | | include | ComponentName[] | undefined | 仅注册列表中的组件。优先级高于 exclude。 | | exclude | ComponentName[] | undefined | 在未设置 include 时,排除列表中的组件。 | | includeIcons | IconName[] | undefined | 仅注册列表中的图标。优先级高于 excludeIcons。 | | excludeIcons | IconName[] | undefined | 在未设置 includeIcons 时,排除列表中的图标。 |

说明:

本地开发

pnpm install
pnpm dev:prepare
pnpm dev
pnpm dev:build
pnpm lint
pnpm test