Open SanpLee opened 6 months ago
设置 sort 为false 无效 ,list 还是能排序
<VueDraggable class="flex flex-col gap-2 w-full p-2" :class="{ 'h-full border border-dashed border-slate-300': isDragLane(item) }" v-model="dragList[index].notStarted" :animation="150" :group="`lane${dyItemId(item)}`" :sort="false" :swapThreshold="0.5" direction="horizontal" @choose="onChoose" @unchoose="onUnchoose" @start="onStart($event, { id: dyItemId(item), state: '1' })" @move="onMove" @update="onUpdate" @add="onAdd" @remove="remove" @end="onEnd($event, '1')" @change="onChange($event, '1')" v-show="isExpandRow(item)" > <ItemCard v-for="childItem in item.notStarted" :key="childItem.id" :data="childItem" state="1" v-model="mainExSwitchState" @dragend="handleDrag(childItem)" /> </VueDraggable>
I tested and couldn't replicate the issue. Please provide the minimum reproduction case so that I can better investigate the problem.
设置 sort 为false 无效 ,list 还是能排序