Socket
Socket
Sign inDemoInstall

@hb-ui/antd

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hb-ui/antd

基于 antd 二次封装的一些常用组件


Version published
Maintainers
4
Created
Source

@hb-ui/antd

基于 antd 二次封装的一些常用组件

工程

第一感官像是一个普通的 Vite 应用,事实确实如此 -- 鲁迅

├─┬ components      组件源码目录
│ ├── form
│ └── table
│
├─┬ es              组件输出目录
│ ├── form
│ └── table
│
├── scripts         组件构建脚本
├── server          mock server
│
├─┬ view            开发组件实时预览
│ ├── form          form 使用案例
│ └── table         table 使用案例
│
└── vite.config.js

开发

即 Vite 应用相同的开发方式

npm run dev

构建

构建脚本会将 components/* 构建到 es/*

npm run build

组件

  • 🤖 推荐将项目 clone 到本地,然后执行 npm run dev 看实际效果
  • 🐢 在线运行 - StackBlitz
Form
  • 基于 antd/form
  • 配置化
  • 搜索缓存
// 你可以根据 TS 类型提示使用
import { Form, FormProps } from '@hb-ui/antd'

export default () => {
  const formProps: FormProps = {
    // Form config
  }

  return <Form {...formProps} />
}

Form 👉 详细使用文档

Table
  • 基于 antd/table
  • 配置化
  • 可编辑
  • 接管请求
  • 接管分页
// 你可以根据 TS 类型提示使用
import { Table, TableProps } from '@hb-ui/antd'

export default () => {
  const tableProps: TableProps = {
    // Table config
  }

  return <Table {...tableProps} />
}

Table 👉 详细使用文档

FAQs

Package last updated on 15 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc