From 58d90362caa596dcbe7a2b82720f724e66a72d94 Mon Sep 17 00:00:00 2001 From: Boyuzhou <386607913@qq.com> Date: Mon, 10 Oct 2016 16:45:37 +0800 Subject: [PATCH] change link --- react编码规范.md | 2 +- sass环境依赖解决.md | 8 +++----- 如何写一个标准的react组件.md | 5 ++++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/react编码规范.md b/react编码规范.md index 812d5c8..e643209 100644 --- a/react编码规范.md +++ b/react编码规范.md @@ -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 diff --git a/sass环境依赖解决.md b/sass环境依赖解决.md index 1f22c2d..055b217 100644 --- a/sass环境依赖解决.md +++ b/sass环境依赖解决.md @@ -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) diff --git a/如何写一个标准的react组件.md b/如何写一个标准的react组件.md index 15c6f77..cc3e5de 100644 --- a/如何写一个标准的react组件.md +++ b/如何写一个标准的react组件.md @@ -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) ##### 开发调试