# client **Repository Path**: SunnyEmma/client ## Basic Information - **Project Name**: client - **Description**: 嵌入式系统设计,电子综合设计Browser Client Project - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2017-05-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # client > A Vue.js project ## Build Setup ``` bash # install dependencies npm install # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build # build for production and view the bundle analyzer report npm run build --report # run unit tests npm run unit # run e2e tests npm run e2e # run all tests npm test ``` For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). # 每个组件的外部div样式以组件名命名,样式名称使用"xx-xx"形式 # 组件文件命名和变量命名用驼峰命名 # 组件命名用“xx-xx” # .vue 文件中写每个组件,注意一层缩进必须用两个空格,且文件最后需要留一行新的换行(格式的强制要求) # 变动的数据先用“reponseData”模拟,这些可能是请求来自后台的数据。然后在使用中直接用reponseData.xxx # 组件中的data必须是一个函数,返回一个对象 # 一个组件中要使用另一个组件要先“import”进来,然后在组件的选项中加入component选项才可以使用