Merge pull request #1019 from QingWei-Li/doc/add-new-compo

Doc: add componet doc
pull/1026/head
杨奕 2016-11-13 09:53:36 +08:00 committed by GitHub
commit 392325dd37
1 changed files with 5 additions and 0 deletions

View File

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