Browse Source

拖动排序修改

duy 5 ngày trước cách đây
mục cha
commit
dbf836534e
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/views/manager/projectinfo/tableSortByType.vue

+ 2 - 1
src/views/manager/projectinfo/tableSortByType.vue

@@ -25,9 +25,10 @@
           <!-- 使用draggable包裹每个分类下的项目列表 -->
           <draggable 
             v-model="category.list" 
-            :options="{ group: `category-${categoryIndex}`, animation: 150 }"
+            :options="{ group: `category-${categoryIndex}`, animation: 150, handle: '.drag-handle' }"
             @end="handleDragEnd(categoryIndex)"
             class="draggable-container"
+              
           >
             <div 
               v-for="(item, itemIndex) in category.list"