Commit 3a927b5b authored by huanglu's avatar huanglu

docs: 完善文档

parent 721bd203
......@@ -68,7 +68,7 @@
```javascript
`${currentIndex}` === `${index}`
```
- 私有变量和方法,使用 `_` 标识
- 在html页面时,尽量使用语义化标签
......@@ -88,6 +88,7 @@
```
- 组件样式
- 在vue中,组件样式,必须使用scope属性,如果要修改三方组件库的样式,使用 /deep/ 避免样式污染
```css
.home {
.home-header {
......@@ -98,6 +99,7 @@
}
}
```
- 页面组件中,代码行数最好不要超过500行,且建议将页面进行组件封装,保证代码的可读性
- 接口定义规范
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment