vue-draggable-plus icon indicating copy to clipboard operation
vue-draggable-plus copied to clipboard

设置 sort 为false 还是能排序

Open SanpLee opened this issue 1 year ago • 1 comments

设置 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>

SanpLee avatar Jan 06 '24 13:01 SanpLee

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

Alfred-Skyblue avatar Jan 08 '24 10:01 Alfred-Skyblue