Files
intc-vue3/README.md
2024-04-19 09:36:13 +08:00

111 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Vue3
## 前端运行
```bash
# 克隆项目
git clone https://github.com/yangzongzhuan/RuoYi-Cloud-Vue3.git
# 进入项目目录
cd RuoYi-Cloud-Vue3
# 安装依赖
yarn --registry=https://registry.npmmirror.com
# 启动服务
yarn dev
# 构建测试环境 yarn build:stage
# 构建生产环境 yarn build:prod
# 前端访问地址 http://localhost:80
```
## koroFileHeader
快速的为文件添加注释:
vue 文件的头部:`ctrl+command+i`
vue 文件的方法:`ctrl+command+t`
个性化设置:打开设置:
然后在 settings.json 中设置如下:
%accordion% <font style="color: green; font-weight: bold;">点击查看代码</font> %accordion%
```json
"fileheader.customMade": {
"Description": "",
"Version": "1.0.0",
"Autor": "fujingwen",
"Date": "Do not edit",
"LastEditors": "fujingwen",
"LastEditTime": "Do not edit",
"FilePath": ""
},
"fileheader.cursorMode": {
"desc" :"",
"param": "",
"return": "",
"author":"fujingwen"
}
```
%/accordion%
快捷键:
函数注释cursorTip
头部注释fileheader
新建文件时,默认会自动添加头部注释,取消的方式:
```js
// 头部注释
"fileheader.customMade": {
"autoAdd": false, //关闭自动生成头部注释
},
// "fileheader.configObj": {
// "autoAdd": false, // 关闭
// },
```
## 注释规范
```vue
<!--
* @Description: xxx
* @Version: 1.0.0
* @Author: fujingwen
* @Date: 2023-02-10 17:14:41
* @FilePath: /RuoYi-Cloud-Vue3/src/views/system/user/index.vue
-->
```
```js
/**
* @desc 删除按钮操作
* @param {Object} row xxx
* @return {string} xxx
*/
```
## icon
src/assets
## 文件命名
## 组件通信
公共组件src/components
## 分支
master 公共分支
pipe 管廊分支