部分代码如下
<Suspense>
<loading/>
</Suspense>
<TresCanvas alpha clear-color="#0d161d" shadows window-size>
<TresPerspectiveCamera ref="tpcRef" :look-at="[-9.656437323549701,-8.412974487854074,9.582901100638917]"
:position="[-9.488622309584471,65.86686111074975,76.53421073357636]"/>
<OrbitControls ref="cmaRef" v-bind="controlsState"/>
<Suspense>
<factory/>
</Suspense>
<TresDirectionalLight :intensity="6" :position="[-4, 8, 4]" cast-shadow/>
<TresAmbientLight :intensity="2"/>
<TresAxesHelper/>
<TresMesh v-for="item in list" :position="item.position" cast-shadow>
<TresBoxGeometry :args="[1, 1,1]"/>
<TresMeshToonMaterial color="#006060"/>
<Html v-bind="divState">
<div class="boxStyle1 pos-relative left-0 top--15 text-white">
XXX
</div>
</Html>
</TresMesh>
</TresCanvas>
谢谢 提交pr
已经修复,主要原因是:loading组件的z-index过低导致, 已在
https://gitee.com/ice-gl/icegl-three-vue-tres/commit/833e9a349cf7a8219678dee5c666867a18cfde64
这次提交中修复
更新版本即可