Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hb-ui/antd

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hb-ui/antd

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

  • 4.4.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
3
Weekly downloads
 
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} />
}
Table
  • 基于 antd/table
  • 配置化
  • 可编辑
  • 接管请求
  • 接管分页
// 你可以根据 TS 类型提示使用
import { Table, TableProps } from '@hb-ui/antd'

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

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

FAQs

Package last updated on 15 Dec 2022

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