seasun-design
v1.1.55
Published
Seasun frontend components
Downloads
208
Readme
seasun-design
Usage
# 安装依赖
$ pnpm add seasun-design -S
```
## Development
```bash
# install dependencies
$ pnpm install
# develop library by docs demo
$ pnpm start
# build library source code
$ pnpm run build
# build library source code in watch mode
$ pnpm run build:watch
# build docs
$ pnpm run docs:build
# check your project for potential problems
$ pnpm run doctor
LICENSE
MIT
Steps
- 在
basic
或者business
文件夹下新建组件文件夹例如A
- 新建组件入口文件
index.tsx
- 新建组件文档入口文件
index.md
- 在
src/index.ts
中引入export { default as A} from './basic/A'
- 新建组件类型文件
typings.d.ts
Tips
- 需要注意生成产物不支持
CSS Modules
因此组件开发中要使用CSS in JS
方案