Skip to content

Commit

Permalink
fix: 根据窗口尺寸展示对应端的拖拽功能
Browse files Browse the repository at this point in the history
  • Loading branch information
Yolo-00 committed Oct 12, 2024
1 parent 5213201 commit 068819f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/components/draggable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ const onTouchEnd = () => {

<template>
<div>
<draggable v-model="list" item-key="id" v-if="true">
<draggable v-model="list" item-key="id" class="max-md:hidden">
<template #item="{ element }">
<el-card class="mt-5">
<div>{{ element.name }}</div>
</el-card>
</template>
</draggable>
<div class="w-80 grid grid-cols-3 bg-gray-300 p-5 gap-5" v-else>
<div class="w-80 grid grid-cols-3 bg-gray-300 p-5 gap-5 md:hidden">
<div
v-for="(item, index) in list"
:key="item.id"
Expand Down

0 comments on commit 068819f

Please sign in to comment.