wangqiujuan0808 2023-12-10 20:41:03 +08:00
parent 839a1bc4bc
commit 39ade905f1
1 changed files with 35 additions and 1 deletions

View File

@ -1,6 +1,17 @@
<template> <template>
<div> <div>
<div id="gltf"></div> <div id="gltf"></div>
<div class="btnGroup">
<div class="button" @click="toHomeView">
主视角
</div>
<div class="button" @click="setLabel">
{{ isAddLabel ? '添加标签' : '移除标签' }}
</div>
<div class="button" @click="walk">
漫游
</div>
</div>
</div> </div>
</template> </template>
<script setup> <script setup>
@ -123,4 +134,27 @@ const onMouseDown = (event) => {
} }
} }
</script> </script>
<style scoped></style> <style scoped>
.btnGroup {
width: 180px;
position: absolute;
left: 0px;
bottom: 40px;
z-index: 999;
display: flex;
flex-direction: column;
justify-content: space-between;
cursor: pointer;
color: #ffff;
>div {
background: #477efa;
width: 120px;
height: 40px;
border-radius: 0 50px 50px 0;
line-height: 40px;
text-align: center;
margin-top: 10px;
}
}
</style>