Alfred-Skyblue / vue-draggable-plus

Universal Drag-and-Drop Component Supporting both Vue 3 and Vue 2
https://vue-draggable-plus.pages.dev/en/
MIT License
2.72k stars 106 forks source link

设置 sort 为false 还是能排序 #86

Open SanpLee opened 6 months ago

SanpLee commented 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>
Alfred-Skyblue commented 6 months ago

I tested and couldn't replicate the issue. Please provide the minimum reproduction case so that I can better investigate the problem.