vue 拖拽组件
1 <div> 2 <draggable :list=“rows” group="people" @add="vadd"> 3 <component v-for="row in rows" :key=“row.id” :is="getComponentName(row)"></component> 4 </draggable> 5 6 <draggable :disable="item.ent" :group=“{name:"people",pull:"clone", put:false}” v-for="row in rows" :key=“row.id”> 7 8 </draggable> 9 </div> 10 11 //js 12 13 Vue.component("name",{ 14 props:["row"], 15 methods:{ 16 17 }, 18 template 19 20 })