vue Project Considerations

vue Project Considerations

1. File naming and routing

which represents your views below Navigation every piece, each file name
need to be capitalized, the route name all lowercase, with the first layer routing is the bottom navigation name a few, the secondary route is a
base-level routing the writing, the name of the route if there is a two-word, we must use short Henggang format: ratio
as / home / shop-detail

Question 2. components and pages

Component is part of all the pages to be used, he does not as a separate page
using the page is that you can directly jump index.js route there was only called a page, the page views on the whole folder
face , the following components on all components

3. Download the plug-in project in question

Do not use a small part of a plug-in to download a plug-in inside, it will
make this project occupies a lot of memory, using plug-ins all the way loaded on demand, using a plug-in project in general have
a tree view of element-ui, vant plugin, you need to find what can be directly vant, a carousel view of what's there, not
again introduced extra plug-ins

4. picture where to place the issue

If you have pictures of each navigation below, give each navigation are adding a folder to place
the navigation below all the pictures, do not put too much on static images folder

The naming

Whether the file name or the name of the class routing all named according to the meaning represented by characters, do not use abbreviations alphabet to name

Guess you like

Origin www.cnblogs.com/angel648/p/11542057.html