Browse Source

修改TableDesig引起的无法生成文档BUG。

sybotan 4 years ago
parent
commit
3cf7ca9210

+ 3 - 3
docs/.vuepress/components/TableDesig.vue

@@ -41,10 +41,10 @@
 </template>
 
 <script>
-    // import Vue from "vue";
-    // import ElementUI from "element-ui";
+    import Vue from "vue";
+    import ElementUI from "element-ui";
     import Axios from "axios";
-    // import "element-ui/lib/theme-chalk/index.css";
+    import "element-ui/lib/theme-chalk/index.css";
     import Opt from "../opt"
 
     Vue.use(ElementUI);

+ 24 - 0
docs/.vuepress/components/example/web/graph/DrawPolyline1.vue

@@ -0,0 +1,24 @@
+<template>
+    <canvas id="drawPolyline1" width="800" height="100" />
+</template>
+
+<script lang="ts">
+    import { SCanvasView, SColor, SPainter } from "@saga-web/draw/lib";
+
+    class TestView extends SCanvasView {
+
+        constructor() {
+            super("drawPolyline1")
+        }
+
+        onDraw(canvas: SPainter): void {
+            canvas.drawLine(0,0, 100, 100);
+        }
+    }
+
+    export default {
+        mounted() {
+            new TestView();
+        }
+    }
+</script>

+ 4 - 2
docs/.vuepress/config.js

@@ -50,7 +50,8 @@ module.exports = {
                     {
                         text: "Web开发",
                         items: [
-                            { text: "系统图引擎", link: "/dev/saga-graphy/" }
+                            { text: "图形引擎", link: "/dev/saga-graphy/" },
+                            { text: "建筑信息图", link: "/dev/saga-big/" }
                         ]
                     },
                     {
@@ -83,7 +84,8 @@ module.exports = {
                     {
                         text: "Web开发",
                         items: [
-                            { text: "图形引擎", link: "http://adm.sagacloud.cn:8080/api/web/graphy/" }
+                            { text: "图形引擎", link: "http://adm.sagacloud.cn:8080/api/web/graphy/" },
+                            { text: "建筑信息图", link: "http://adm.sagacloud.cn:8080/api/web/big/" }
                         ]
                     },
                     {

+ 2 - 0
docs/dev/saga-big/README.md

@@ -0,0 +1,2 @@
+# 建筑信息图
+

+ 1 - 5
docs/dev/saga-graphy/README.md

@@ -1,5 +1 @@
-系统图引擎
-1,绘图引擎
-2,场景管理
-3,楼层平面图
-4,系统图
+# 图形引擎

+ 9 - 0
docs/dev/saga-graphy/graphy-engine/draw.md

@@ -14,6 +14,13 @@
 :::
 
 ## 折线
+<example-web-graph-DrawPolyline1 /> 
+
+::: details 查看代码
+
+<<< @/docs/.vuepress/components/example/web/graph/DrawPolyline1.vue
+
+:::
 
 ## 矩形
 
@@ -27,6 +34,8 @@
 
 ## 圆
 
+
+
 ## 椭圆
 
 ## 多边形