ソースを参照

拖动排序修改

duy 5 日 前
コミット
dbf836534e
1 ファイル変更2 行追加1 行削除
  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"