fuchengshen
2022-07-09 3a25c05b5ab837714f30469cdcb1e2a77d8d7f6c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<template>
  <mars-pannel :visible="true" right="10" top="10" width="450">
    <layer-state />
    <div class="f-mb f-pt">
      <a-row>
        <a-col :span="4">点状:</a-col>
        <a-col :span="19">
          <div class="entity-button-contain" :key="item.name" v-for="item in list.point">
            <mars-button :href="item.href" target="_blank">{{ item.name }}</mars-button>
          </div>
        </a-col>
      </a-row>
    </div>
 
    <div>
      <a-row>
        <a-col :span="4">线面状:</a-col>
        <a-col :span="19">
          <div class="entity-button-contain" :key="item.name" v-for="item in list.polyline">
            <mars-button :href="item.href" target="_blank">{{ item.name }}</mars-button>
          </div>
        </a-col>
      </a-row>
    </div>
  </mars-pannel>
</template>
 
<script setup lang="ts">
import LayerState from "@mars/components/mars-sample/layer-state.vue"
 
const list = {
  point: [
    { name: "文字", href: "editor-vue.html?id=graphic/entity/label" },
    { name: "点", href: "editor-vue.html?id=graphic/entity/point" },
    { name: "图标点", href: "editor-vue.html?id=graphic/entity/billboard" },
    { name: "平面", href: "editor-vue.html?id=graphic/entity/plane" },
    { name: "盒子", href: "editor-vue.html?id=graphic/entity/box" },
    { name: "圆", href: "editor-vue.html?id=graphic/entity/circle" },
    { name: "圆锥", href: "editor-vue.html?id=graphic/entity/cylinder" },
    { name: "球", href: "editor-vue.html?id=graphic/entity/ellipsoid" },
    { name: "小模型", href: "editor-vue.html?id=graphic/entity/model" }
  ],
  polyline: [
    { name: "线", href: "editor-vue.html?id=graphic/entity/polyline" },
    { name: "管道", href: "editor-vue.html?id=graphic/entity/polylineVolume" },
    { name: "走廊", href: "editor-vue.html?id=graphic/entity/corridor" },
    { name: "墙", href: "editor-vue.html?id=graphic/entity/wall" },
    { name: "矩形", href: "editor-vue.html?id=graphic/entity/rectangle" },
    { name: "面", href: "editor-vue.html?id=graphic/entity/polygon" }
  ]
}
</script>
<style scoped lang="less">
.ant-col-4 {
  max-width: 11.666667%;
}
.entity-button-contain {
  float: left;
  .mars-button {
    margin-right: 8px;
    margin-bottom: 8px;
  }
}
</style>