Skip to content

Commit d04c4ae

Browse files
committed
Doc: add componet doc
1 parent 58dc7e1 commit d04c4ae

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,10 @@ To build:
5555
npm run dist
5656
```
5757

58+
## 组件开发规范
59+
- 通过 `npm run new` 创建组件目录结构,包含测试代码、入口文件、cooking 配置、package.json、文档
60+
- 如果包含父子组件,需要更改目录结构,参考 `Button`
61+
- 组件内如果依赖了其他组件,需要在当前组件内引入,参考 `Select`
62+
5863
## 代码规范
5964
遵循饿了么前端的 [ESLint](https://github.com/ElemeFE/eslint-config-elemefe) 即可

0 commit comments

Comments
 (0)