代码如下:
<table class="table table-condensed">
<caption>编排工序</caption>
<thead>
<tr>
<th>名称1</th>
<th>名称2</th>
<th>名称3</th>
<th>名称4</th>
<th>名称5</th>
<th>名称6</th>
</tr>
</thead>
<tbody>
<draggable class="list-group" v-model="arrangeP" :options="dragOptions" @remove="reuse">
<tr v-for="(item,index) in arrangeP" :key="'item'+index">
<td>{{item.complete}}</td>
<td>{{item.code}}</td>
<td>{{item.name}}</td>
<td>{{item.time}}</td>
<td>{{item.person}}</td>
<td>{{item.stations}}</td>
</tr>
</draggable>
</tbody>
</table>
我把组件draggable标签加上elemenet="tr" 然后去掉tr,出现以下情况
自己解决了,把<tbody>标签去掉,然后用draggable渲染成<tbody>就好了