Skip to content

Commit

Permalink
拖拽时卡片不显示操作项
Browse files Browse the repository at this point in the history
  • Loading branch information
hanaTsuk1 committed Jun 21, 2024
1 parent 112fa42 commit b8ab5cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/grid/GridCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function handleLongpress() {
</template>
<slot />
<div
v-if="isDesktop"
v-if="isDesktop && !dragged"
:class="selectedVModel || isHovering ? 'opacity-100' : 'opacity-0'"
transition-opacity-400
absolute top-0 right-2 bg-white
Expand All @@ -57,7 +57,7 @@ function handleLongpress() {
/>
</div>
<div
v-if="isDesktop && $slots.menu"
v-if="isDesktop && !dragged && $slots.menu"
:class="isHovering ? 'opacity-100' : 'opacity-0'"
transition-opacity-400
absolute bottom-2 right-2.5 bg-white
Expand Down

0 comments on commit b8ab5cf

Please sign in to comment.