优化了鼠标经过图标的用户体验

This commit is contained in:
lin 2022-09-16 19:59:17 +08:00
parent 85819af9d2
commit 7c39b8156f

View File

@ -17,7 +17,9 @@
top: block.y * heightUnit + 'px',
}"
@click="(e) => doClickBlock(block, e)"
>{{ block.type }}</div>
>
{{ block.type }}
</div>
</div>
<!-- 随机选块 -->
<div class="random-board">
@ -30,7 +32,9 @@
v-if="randomBlock.length > 0"
class="block"
@click="(e) => doClickBlock(randomBlock[0], e, index)"
>{{ randomBlock[0].type }}</div>
>
{{ randomBlock[0].type }}
</div>
<div
v-for="num in Math.max(randomBlock.length - 1, 0)"
:key="num"
@ -44,7 +48,9 @@
v-for="(slotBlock, index) in slotAreaVal"
:key="index"
class="block"
>{{ slotBlock?.type }}</div>
>
{{ slotBlock?.type }}
</div>
</div>
</a-row>
</div>