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

vant-go

v1.0.21

Published

基于 Vant 的移动端扩展组件库

Readme

vant-go

基于 Vant 4 的 Vue 3 + TypeScript 移动端业务组件扩展库。

组件列表

| 组件名 | 说明 | 主要 Props | |--------|------|------------| | VaxAvatar | 头像组件,基于 Vant Image 封装 | src 头像地址, size 尺寸(small/normal/large/number), round 是否圆形 | | VaxCaptcha | 验证码输入组件,支持短信/WhatsApp 双通道 | phone 手机号, captcha 验证码, whatsApp 是否启用WhatsApp, onSend 发送接口 | | VaxCard | 卡片组件,包含标题、内容、状态和行动区域 | title 标题, label 标签, value 值, status 状态, action 操作 | | VaxEmpty | 空状态组件,基于 Vant Empty 封装 | image 图片类型, imageSize 图片尺寸, description 描述文字 | | VaxField | 表单字段组件,支持文本/日期/选择器 | icon 图标, label 标签, type 类型(text/date/select), readonly 只读 | | VaxIcon | 图标组件,基于 Iconify 图标库 | icon 图标名, vendor 图标库, size 尺寸, color 颜色, background 背景色, round 圆形背景 | | VaxLoading | 加载组件,支持全屏遮罩 | type 类型, size 尺寸, color 颜色, text 文字, fullscreen 是否全屏 | | VaxNavBar | 导航栏组件,基于 Vant NavBar 封装 | leftArrow 返回箭头, leftText 左侧文字 | | VaxTabbar | 底部标签栏组件,支持路由切换 | menu 菜单配置数组, flash 是否启用闪光效果 |

安装

pnpm add vant-go vant vue

vantvue 是 peer 依赖,必须由消费项目自行安装(避免重复打包与版本冲突)。

使用

A. 全量注册

import { createApp } from 'vue'
import VantGo from 'vant-go'
import 'vant-go/style.css'
import App from './App.vue'

createApp(App).use(VantGo).mount('#app')

B. 按需 + 自动导入(推荐)

配合 unplugin-vue-components 使用 VantGoResolver,模板里裸写组件即可,无需手动 import。

// vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import Components from 'unplugin-vue-components/vite'
import { VantResolver } from '@vant/auto-import-resolver'
import { VantGoResolver } from 'vant-go/resolver'

export default defineConfig({
  plugins: [
    vue(),
    Components({
      resolvers: [
        VantResolver(),
        VantGoResolver(),
      ],
    }),
  ],
})
<template>
  <VaxEmpty description="还没有数据" />
  <VaxLoading fullscreen text="加载中..." />
</template>

VantGoResolver 默认会自动导入 vant-go/style.css(去重处理),如要手动管理样式:

开发

pnpm install
pnpm build       # vue-tsc 类型检查 + vite 构建
pnpm pack        # 生成 tarball 用于发布前烟测

License

MIT © joming