Browse Source

拖动排序

gangyj 3 years ago
parent
commit
3a9b611a2e
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/components/WbsTree/ManualSorting.vue

+ 5 - 1
src/components/WbsTree/ManualSorting.vue

@@ -3,7 +3,7 @@
     class="ManualSorting"
     style="border: 1px solid #E8E8E8;border-radius: 3px;"
   >
-    <draggable v-model="sort">
+    <draggable :list="sort" @change="listChange">
       <div
         v-for="(item,key) in sort"
         :key="key"
@@ -60,6 +60,10 @@ export default {
         this.$emit('bianhua')
       }
     },
+
+    listChange(){
+      
+    }
   }
 }
 </script>