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 🙏

© 2025 – Pkg Stats / Ryan Hefner

fat-design

v0.0.2-beta.20251130210452

Published

<div align="center"> <h1>🏢 Fat Design</h1> <p><strong>专为后台管理系统打造的企业级 React 组件库</strong></p> <p>🎯 <em>专注于表格密集型和表单密集型的后端管理场景</em></p>

Readme

Fat Design 组件库文档

🎯 最佳适用场景

Fat Design 专为后台管理系统开发而生,特别擅长处理以下场景:

🗃️ 表格密集型应用

  • 数据管理系统:用户管理、订单管理、商品管理等
  • 报表中心:业务报表、财务报表、统计分析
  • 监控平台:系统监控、日志管理、性能分析
  • 内容管理:文章管理、媒体库、权限管理

📝 表单密集型应用

  • 配置管理:系统配置、参数设置、规则配置
  • 数据录入:批量导入、表单填写、信息收集
  • 审批流程:工单系统、审批管理、流程配置
  • 业务配置:商品配置、营销配置、用户设置

💼 典型应用类型

  • 企业ERP系统 - 销售、库存、财务、人事管理
  • 电商后台 - 商品、订单、用户、营销管理
  • 内容管理系统(CMS) - 文章、媒体、分类、用户管理
  • 运营后台 - 数据分析、用户运营、内容运营
  • 监控平台 - 系统监控、日志分析、报警管理

✨ 核心优势

🏆 表格场景王者

  • TablePro组件:专为复杂表格场景设计,支持高级筛选、批量操作、列配置
  • 高性能渲染:虚拟滚动支持,轻松处理万级数据量
  • 丰富的交互:排序、筛选、搜索、导出一应俱全
  • 用户体验:跨页选择、批量操作、状态记忆

📋 表单场景专家

  • Form2系统:业界领先的表单解决方案,支持复杂联动和验证
  • 精准渲染:React.memo优化,大型表单性能提升80%
  • Schema驱动:配置化表单,快速构建复杂业务表单
  • 智能联动:字段依赖跟踪,实现复杂的业务逻辑

🎨 后台系统友好

  • 11套内置主题:专为后台管理系统设计的配色方案
  • 响应式布局:完美适配各种屏幕尺寸
  • 完整类型支持:TypeScript全量支持,开发体验极佳
  • 轻量高效:Tree Shaking支持,按需加载不臃肿

📦 快速开始

安装

npm install fat-design
# 或
yarn add fat-design
# 或
pnpm add fat-design

基本使用

import React from 'react'
import { Button, Message } from 'fat-design'
import 'fat-design/dist/theme-default.css'

function App() {
  const handleClick = () => {
    Message.success('Hello Fat Design!')
  }

  return (
    <Button type="primary" onClick={handleClick}>
      点击我
    </Button>
  )
}

📖 文档导航

🚀 入门指南

🎨 设计系统

📋 组件分类

🧱 基础组件

📐 布局组件

📝 表单组件 (后台表单场景核心)

📊 数据展示 (后台表格场景核心)

💬 反馈组件

🧭 导航组件

🔧 高级组件 (后台管理增强功能)

🛠️ 工具和Hooks

📚 示例和最佳实践

🚀 为什么选择 Fat Design?

📊 表格场景无与伦比

// 一个配置搞定复杂表格
<TablePro
  useTablePro={useTablePro}
  columns={[
    { dataIndex: 'name', title: '用户名', sortable: true },
    { dataIndex: 'status', title: '状态', filterable: true },
    { dataIndex: 'createTime', title: '创建时间', dateFilter: true }
  ]}
  batchActions={[
    { key: 'delete', name: '批量删除' },
    { key: 'export', name: '批量导出' }
  ]}
  advancedFilter // 高级筛选
  columnConfig   // 列配置
  virtualScroll  // 虚拟滚动
/>

核心优势:

  • 性能卓越:虚拟滚动 + 按需渲染,万级数据流畅显示
  • 🎛️ 功能全面:筛选、排序、搜索、导出、批量操作一应俱全
  • 🔧 高度可配置:列显示、工具栏、操作按钮完全自定义
  • 📱 响应式设计:移动端友好,完美适配各种屏幕

📝 表单场景的终极解决方案

// Schema驱动的高性能表单
<Form
  schema={{
    type: 'object',
    properties: {
      category: {
        label: '商品分类',
        component: 'Select',
        required: true,
        enums: () => fetchCategories()
      },
      subcategory: {
        label: '子分类',
        component: 'Select', 
        deps: ['category'], // 依赖 category 字段
        enums: (value, {values}) => fetchSubcategories(values.category)
      }
    }
  }}
  onChange={handleChange}
  autoValidate
/>

核心优势:

  • 精准渲染:React.memo + 智能依赖跟踪,性能提升80%
  • 🔗 智能联动:字段间复杂依赖关系,配置即生效
  • 🛡️ 全面验证:内置验证规则 + 自定义验证,数据质量保障
  • 📋 Schema驱动:配置化开发,复杂表单分钟搞定

🎨 专业的后台主题系统

为后台管理系统精心设计的11套主题:

// 商务专业 - 蓝色系
import 'fat-design/dist/theme-blue1.css'   // 经典商务蓝
import 'fat-design/dist/theme-blue2.css'   // 科技感蓝

// 清新自然 - 绿色系  
import 'fat-design/dist/theme-green.css'   // 自然绿
import 'fat-design/dist/theme-green2.css'  // 薄荷绿

// 活力温暖 - 暖色系
import 'fat-design/dist/theme-orange.css'  // 活力橙
import 'fat-design/dist/theme-red.css'     // 热情红
import 'fat-design/dist/theme-pink.css'    // 温馨粉

// 高端神秘 - 冷色系
import 'fat-design/dist/theme-purple.css'  // 神秘紫

💡 专为后台管理优化的特性

  • 大数据量处理:表格虚拟滚动,表单按需渲染
  • 复杂业务逻辑:表单联动,表格筛选,批量操作
  • 用户体验优化:状态记忆,跨页选择,智能加载
  • 开发效率提升:Schema配置,Hook复用,TypeScript支持

🔗 相关资源

📞 支持与反馈

如果你在使用过程中遇到问题或有建议,欢迎:

  • 提交 GitHub Issues
  • 参与讨论和贡献代码
  • 关注我们的更新动态