|
@@ -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"
|