@zjlab-fe/data-hub-ui
TypeScript icon, indicating that this package has built-in type declarations

0.4.7 • Public • Published

data-hub-ui

使用

import { InputTag } from '@zjlab-fe/data-hub-ui

组件文档站点

https://shelwinjue.github.io/fe-assets/data-hub-ui/doc

新建组件

src/components目录下新建组件目录,参考组件input-tag的代码目录

component-folder
├── demo // 确保是demo目录
│    └── index.tsx // demo调试入口文件
│
├── index.module.scss // 组件的样式文件,使用css modules
├── index.tsx // 组件入口文件
└── README.md // 组件的说明文档,用于生成组件文档站点

增加组件demo路由

为了调试组件,需要在src/demo/router/index.tsx中增加组件demo的路由配置

组件库本地开发&调试

npm run start

组件README.md说明

请在README.md中引入demo,用于代码演示,补充完整的API说明,可参考src/components/input-tag/README.md

Readme

Keywords

none

Package Sidebar

Install

npm i @zjlab-fe/data-hub-ui

Weekly Downloads

139

Version

0.4.7

License

ISC

Unpacked Size

328 kB

Total Files

159

Last publish

Collaborators

  • xian_feng
  • cynthiagao