我正在尝试将相同的数组拖到数组请检查我的代码并让我在哪里做错了。工作了将近 10 个小时,但没有找到任何解决方案。感谢您的帮助。
<draggable v-model="userSkillLevel3"
:options="{group:'people',animation:150,filter: '.ignore-elements',preventOnFilter: true,dragClass:'sortable-chosen',handle: '.sortable-chosen',chosenClass:'sortable-chosen',ghostClass: 'sortable-ghost'}"
@change="sortSkill($event,userSkillLevel2)">
<div class="sortable-ghost">
<div class="ignore_element">
<input id="entry_level2" type="radio" name="expertlevel" value="2" v-on:click="updateSkillLevel(2)">
<label for="entry_level2"><span>$</span> Expert</label>
</div>
<div class="resultshow ">
<draggable v-model="userSkillLevel3"
:options="{group:'people',animation:150}" >
<ul v-for="(userSkillLevel,index) in userSkillLevel3" :key="index" class="">
<li class=" sortable-chosen"><span class="">{{userSkillLevel.name}} <i v-on:click="clearCurrentSkillLevel(''+userSkillLevel.code+'')" class="fa fa-close"></i></span></li>
</ul>
</draggable>
</div>
</div>
</draggable>