Browse Source

fix:打包时this指向问题

shaun-sheep 4 years ago
parent
commit
8cce17f5b1

+ 8 - 1
docs/.vuepress/config.js

@@ -75,7 +75,6 @@ module.exports = {
                         text: "引擎",
                         items: [
                             {text: "数据格式", link: "/guides/format/floorMap.md"},
-                            {text: "开发规范", link: "/guides/standard/"},
                             {text: "图形引擎", link: "/guides/engine/"},
                             {text: "场景管理", link: "/guides/scene/"},
                             {text: "楼层平面图", link: "/guides/big/"},
@@ -86,6 +85,14 @@ module.exports = {
                 ]
             },
             {
+                text:"开发规范",
+                items: [
+                    {text: "javascript", link: "/guides/standard/javascript.md"},
+                    {text: "typescript", link: "/guides/standard/typescript.md"},
+                    {text: "git", link: "/guides/standard/git.md"},
+                ]
+            },
+            {
                 text: "API参考",
                 items: [{
                         text: "图形引擎",

+ 1 - 0
docs/guides/standard/README.md

@@ -1,5 +1,6 @@
 # 开发规范
 
+
 ### [typescript 编写规范](./typescript.md)
 
 ### [javascript 编写规范](./javascript.md)

+ 20 - 0
docs/guides/standard/git.md

@@ -0,0 +1,20 @@
+# Git 提交规范
+
+::: details 目录
+[[toc]]
+:::
+
+
+- `feat` 增加新功能
+- `fix` 修复问题/BUG
+- `style` 代码风格相关无影响运行结果的
+- `perf` 优化/性能提升
+- `refactor` 重构
+- `revert` 撤销修改
+- `test` 测试相关
+- `docs` 文档/注释
+- `chore` 依赖更新/脚手架配置修改等
+- `workflow` 工作流改进
+- `ci` 持续集成
+- `types` 类型定义文件更改
+- `wip` 开发中

+ 0 - 1
docs/guides/standard/javascript.md

@@ -4,7 +4,6 @@
 [[toc]]
 :::
 
-[返回规范总览](./README.md)
 
 ## JSDoc 注释规范
 

+ 0 - 1
docs/guides/standard/typescript.md

@@ -4,7 +4,6 @@
 [[toc]]
 :::
 
-[返回规范总览](./README.md)
 
 ## 命名
 

+ 1 - 1
package.json

@@ -16,7 +16,7 @@
     "@persagy-web/big": "2.2.9",
     "@persagy-web/draw": "2.2.6",
     "@persagy-web/graph": "2.2.13",
-    "@persagy-vue/doc": "1.1.35",
+    "@persagy-vue/doc": "1.1.36",
     "axios": "^0.19.2",
     "element-ui": "^2.12.0",
     "vue": "^2.6.10",