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

dlabs-ui

v1.3.0

Published

A Vue3 UI component library based on Element Plus

Readme

DlabsUI

基于 Element Plus 的 Vue3 组件库,提供企业级中后台常用组件。

✨ 特性

  • 基于 Vue 3 和 TypeScript 开发,提供完整的类型定义
  • 组件设计遵循企业级中后台 UI 设计规范
  • 支持按需引入和完整引入两种方式
  • 与 Element Plus 组件无缝兼容

📦 安装

使用 npm

npm install dlabs-ui --save

使用 pnpm

pnpm add dlabs-ui

🔨 快速开始

完整引入

// main.ts
import { createApp } from 'vue'
import App from './App.vue'
import DlabsUI from 'dlabs-ui'
import 'dlabs-ui/dist/style.css'

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

按需引入

// main.ts
import { createApp } from 'vue'
import App from './App.vue'
import { DlTable, DlForm } from 'dlabs-ui'
import 'dlabs-ui/dist/style.css'

const app = createApp(App)
app.component('DlTable', DlTable)
app.component('DlForm', DlForm)
app.mount('#app')

⚠️ 版本要求

使用 DlabsUI 时,需确保项目环境满足以下版本要求:

| 依赖 | 版本要求 | |------|----------| | Vue | ≥ 3.5.17 | | Element Plus | ≥ 2.10.3 | | Node.js | ≥ 14.0.0 | | TypeScript | ≥ 4.5.0 |

📋 使用注意事项

  1. 样式导入:无论使用哪种引入方式,都需要手动导入组件库样式

    import 'dlabs-ui/dist/style.css'
  2. Element Plus 冲突:DlabsUI 基于 Element Plus 开发,无需重复安装 Element Plus,但需确保版本兼容

  3. TypeScript 配置:请确保 tsconfig.json 中设置了正确的模块解析方式

    {
      "compilerOptions": {
        "moduleResolution": "bundler",
        "allowSyntheticDefaultImports": true
      }
    }
  4. 构建工具:推荐使用 Vite 4.x 及以上版本进行项目构建

📚 文档

完整文档请访问:http://localhost:5173/

本地运行文档

pnpm docs:dev

🔧 开发指南

安装依赖

pnpm install

启动开发服务器

pnpm dev:all

构建组件库

pnpm build

构建文档和示例

pnpm build:all

📄 许可证

MIT