Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-document
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huanglu
front-document
Commits
3a927b5b
Commit
3a927b5b
authored
Jun 02, 2020
by
huanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: 完善文档
parent
721bd203
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
前端规范.md
前端规范.md
+3
-1
No files found.
前端规范.md
View file @
3a927b5b
...
...
@@ -68,7 +68,7 @@
```javascript
`${currentIndex}` === `${index}`
```
- 私有变量和方法,使用 `_` 标识
- 在html页面时,尽量使用语义化标签
...
...
@@ -88,6 +88,7 @@
```
-
组件样式
-
在vue中,组件样式,必须使用scope属性,如果要修改三方组件库的样式,使用 /deep/ 避免样式污染
```css
.home {
.home-header {
...
...
@@ -98,6 +99,7 @@
}
}
```
- 页面组件中,代码行数最好不要超过500行,且建议将页面进行组件封装,保证代码的可读性
-
接口定义规范
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment