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

@dfsj/components

v4.0.0-alpha.15

Published

通用的vue组件;包括专业组件、原子级组件

Readme

@dfsj/components

基于 Element Plus 的通用业务组件库,包含 Table/Form/BasicModal/Windows/Boards 等高级封装组件

version license

简介

@dfsj/components 是基于 Element Plus 的通用业务组件库,提供 Table、Form、Modal、Windows、Boards 等高级封装组件,通过 Schema 驱动和 Hooks 配合大幅提升中后台表单表格场景的开发效率。

主要功能

  • Table 表格 - 自动分页、列配置、行选择、操作列、图片预览
  • Form 表单 - Schema 驱动表单,支持联动校验、20+ 表单组件类型
  • BasicModal 弹窗 - 拖拽/全屏/自定义按钮/可收起
  • Windows 窗口 - 多窗口管理器,可拖拽缩放
  • Boards 抽屉 - 侧边抽屉管理器,支持宽度调整
  • Editor 富文本 - 基于 WangEditor 封装
  • UnifyChart 图表 - 通用图表容器
  • Highlight 高亮 - 高亮选择组件
  • InputPassword 密码 - 密码强度检测组件
  • Descriptions 描述 - 描述列表组件
  • ClickOutSide 点击外部 - 点击区域外检测组件
  • NodeAxis 时间轴 - 时间轴节点组件
  • Visual 播放器 - 可视化播放器组件

安装

pnpm add @dfsj/components

快速开始

<template>
  <Table :columns="columns" :data="data" :pagination="true" />
</template>

<script setup lang="ts">
import { Table, useTable } from '@dfsj/components'

const columns = [
  { field: 'name', label: '名称' },
  { field: 'age', label: '年龄' }
]

const [register, { getList }] = useTable({
  fetchDataApi: () => api.getList()
})
</script>

主要导出

| 导出名 | 类型 | 说明 | |:------|:-----|:-----| | Table | Component | 高级表格组件 (useTable 配合) | | Form | Component | Schema 驱动表单组件 | | BasicModal | Component | 弹窗组件(导出名为 BasicModal) | | Windows | Component | 窗口管理器组件 | | Boards | Component | 抽屉管理器组件 | | Editor | Component | 富文本编辑器组件 | | UnifyChart | Component | 统一图表容器组件 | | Highlight | Component | 高亮选择组件 | | InputPassword | Component | 密码强度输入框 | | Descriptions | Component | 描述列表组件 | | ClickOutSide | Component | 点击外部检测组件 | | NodeAxis | Component | 时间轴节点组件 | | Visual | Component | 可视化播放器组件 | | useTable | Function | 表格逻辑 Hook (泛型支持) | | useForm | Function | 表单逻辑 Hook |

完整 API 文档请查看 在线文档站

使用要求

| 环境 | 要求 | |:-----|:-----| | Node.js | >=18.12.0 | | Vue | >=3.5 | | Element Plus | >=2.11 |

开发指南

git clone http://10.10.12.18/dfsj/dfsj
pnpm install
cd packages/components
pnpm watch

文档

许可证

MIT

Copyright (c) 2022 - present yangbo