Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-webapp-cli
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
heasy
hls-webapp-cli
Commits
e80a6b5d
Commit
e80a6b5d
authored
Jul 22, 2019
by
JingChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
7ff270b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
README.md
template/README.md
+9
-9
No files found.
template/README.md
View file @
e80a6b5d
...
...
@@ -23,24 +23,24 @@ For a detailed explanation on how things work, check out the [guide](http://vuej
### 文件命名规范
1.
文件夹全部采用
驼峰命名法,即首字母小写后面
每个单词首字母大写
1.
文件夹全部采用
PascalCase命名法,即
每个单词首字母大写
2.
文件名全部
使用小写字母,单词与单词之间采用
**-**
连接,如
**user-info.vue,user-info-d
etail.vue**
,
2.
文件名全部
采用PascalCase命名法,如
**UserInfo.vue,UserInfoD
etail.vue**
,
3.
路由的注册
`import`
语句后的单词采用 Pascal命名法,所有单词的首字母大写,其余字母小写,单词与单词之间不使用任何符号风格。如
```javascript
import HomeManager from '@/pages/
homeManager/home-m
anager'
import LoadMore from '@/pages/
loadMore/load-m
ore'
import UserInfo from '@/pages/
userInfo/user-i
nfo'
import UserInfoDetail from '@/pages/
userInfo/user-info-d
etail'
import HomeManager from '@/pages/
HomeManager/HomeM
anager'
import LoadMore from '@/pages/
LoadMore/LoadM
ore'
import UserInfo from '@/pages/
UserInfo/UserI
nfo'
import UserInfoDetail from '@/pages/
UserInfo/UserInfoD
etail'
```
4.
实际路由注册需安照如下写法,
`path`
为
`/tab/文件名`
,
`/tab`
是否保留视实际情况而定。
`component`
后接的单词需和
`import`
的单词保持一致,
`name`
后接的单词也需和
`import`
的单词保持一致
```javascript
{path: "/tab/
home-m
anager", component: HomeManager, name: 'HomeManager', meta: {keepAlive: true}},
{path: '/tab/
load-m
ore', component: LoadMore, name: 'LoadMore', meta: {keepAlive: true}},
{path: '/tab/
user-i
nfo', component: UserInfo, name: 'UserInfo', meta: {keepAlive: true}},
{path: "/tab/
HomeM
anager", component: HomeManager, name: 'HomeManager', meta: {keepAlive: true}},
{path: '/tab/
LoadM
ore', component: LoadMore, name: 'LoadMore', meta: {keepAlive: true}},
{path: '/tab/
UserI
nfo', component: UserInfo, name: 'UserInfo', meta: {keepAlive: true}},
```
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