change link

This commit is contained in:
Boyuzhou 2016-10-10 16:45:37 +08:00
parent c28bd17318
commit 58d90362ca
3 changed files with 8 additions and 7 deletions

View File

@ -26,7 +26,7 @@
- 代码规范使用 [airbnb规范](https://github.com/airbnb/javascript/tree/master/react)
## 样式规范
- 组件样式使用sass编写公用样式使用bee-core包
- 组件样式使用sass编写公用样式使用tinper-bee-core包,请阅读[tinper-bee-core文档](https://github.com/tinper-bee/tinper-bee-core)
- 组件样式调用使用classnames模块进行样式处理使用className调用
- 组件内部使用clsPrefix为样式前缀
```javascript

View File

@ -2,7 +2,7 @@
## 安装Ruby
sass依赖Ruby环境所以需要先安装Ruby
- 下载地址(http://rubyinstaller.org/downloads)[http://rubyinstaller.org/downloads]
- 下载地址[http://rubyinstaller.org/downloads](http://rubyinstaller.org/downloads)
- 注意事项安装时最好勾选Add Ruby executables to your PATH这个选项添加环境变量。
- 查看ruby是否正确安装在命令窗口使用ruby -v查看版本号来确认是否正确安装
@ -26,7 +26,5 @@ cnpm install --save-dev gulp-sass
## sass用法
请移步参考:
(http://www.w3cplus.com/sassguide/)[http://www.w3cplus.com/sassguide/]
(http://sass-lang.com/documentation/file.SASS_REFERENCE.html)[http://sass-lang.com/documentation/file.SASS_REFERENCE.html]
(关于安装gulp-sass失败的问题解决)[http://blog.csdn.net/jimmyhandy/article/details/50723174]
[http://www.w3cplus.com/sassguide/](http://www.w3cplus.com/sassguide/)
[http://sass-lang.com/documentation/file.SASS_REFERENCE.html](http://sass-lang.com/documentation/file.SASS_REFERENCE.html)

View File

@ -2,7 +2,7 @@
#### 环境依赖
- 需要安装node 4.0版本及以上, npm版本最好3.0以上
- (sass环境依赖)[]
- [sass环境依赖](https://github.com/tinper-bee/react-components-docs/blob/master/sass%E7%8E%AF%E5%A2%83%E4%BE%9D%E8%B5%96%E8%A7%A3%E5%86%B3.md)
### 一、生成组件脚手架
#### 1、下载
@ -63,6 +63,9 @@ API介绍
- 根目录 中的 html 不可修改,通过 js 中的 jsx 渲染页面,通过 require css 引入 css。
- 开发中用到其他公共库,通过 `npm install --save` 以及 `npm install --save-dev` 来安装
##### 代码书写规范
[react编码规范](https://github.com/tinper-bee/react-components-docs/blob/master/react%E7%BC%96%E7%A0%81%E8%A7%84%E8%8C%83.md)
[react组件测试流程和规范](https://github.com/tinper-bee/react-components-docs/blob/master/react%E7%BB%84%E4%BB%B6%E6%B5%8B%E8%AF%95%E6%B5%81%E7%A8%8B%E5%92%8C%E8%A7%84%E8%8C%83.md)
##### 开发调试