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

@pengmeng/ui-components

v1.4.1

Published

企业级 Vue 2 UI 组件库

Readme

@pengmeng/ui-components

企业级 Vue 2 UI 组件库

📖 在线文档

📖 查看 Storybook 组件文档 了解所有组件的使用方法和示例。

特性

  • 🚀 基于 Vue 2 + TypeScript 开发
  • 📦 支持 ESM 和 CommonJS 双模块输出
  • 🎨 使用 Less + CSS Modules 样式方案
  • 📝 完整的 TypeScript 类型定义
  • 🔧 可按需引入组件

安装

pnpm add @pengmeng/ui-components

使用

全量引入

import Vue from 'vue';
import UIComponents from '@pengmeng/ui-components';
import '@pengmeng/ui-components/es/index.css';

Vue.use(UIComponents);

按需引入

import Vue from 'vue';
import { Button } from '@pengmeng/ui-components';
import '@pengmeng/ui-components/es/index.css';

Vue.use(Button);
// 或
Vue.component('PButton', Button);

在模板中使用

<template>
  <div>
    <p-button type="primary">主要按钮</p-button>
    <p-button>默认按钮</p-button>
    <p-button type="dashed">虚线按钮</p-button>
    <p-button type="text">文字按钮</p-button>
    <p-button type="link">链接按钮</p-button>
  </div>
</template>

组件列表

| 组件 | 描述 | |------|------| | Button | 按钮组件 |

开发

# 安装依赖
pnpm install



# 构建
pnpm run build

# 清理构建产物
pnpm run clean

添加新组件

  1. src/components/ 下创建组件目录,例如 Input/

  2. 创建以下文件:

    • Input.tsx - 组件实现
    • Input.module.less - 组件样式
    • index.ts - 组件导出
  3. 运行 pnpm run build:entry 自动更新入口文件

组件模板

// src/components/Input/Input.tsx

export default Vue.extend({
  render() {
    return <a-input/>
  }
})
// src/components/Input/index.ts
import { VueConstructor } from 'vue';
import Input from './Input';

(Input as any).install = function (Vue: VueConstructor): void {
  Vue.component(Input.name || 'PInput', Input);
};

export default Input;

目录结构

ui-components/
├── src/
│   ├── components/          # 组件目录
│   │   └── Button/          # 按钮组件
│   │       ├── Button.tsx
│   │       ├── Button.module.less
│   │       └── index.ts
│   ├── styles/              # 全局样式
│   │   ├── index.less
│   │   └── vars.less
│   └── index.ts             # 入口文件(自动生成)
├── scripts/
│   └── generate-entry.js    # 入口生成脚本
├── es/                      # ESM 构建产物
├── lib/                     # CJS 构建产物
├── package.json
├── tsconfig.json
├── rollup.config.js
└── README.md