Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SanpLee opened this issue Jan 6, 2024 · 1 comment
Open

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

SanpLee opened this issue Jan 6, 2024 · 1 comment

Comments

@SanpLee
Copy link

SanpLee commented Jan 6, 2024

设置 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 SanpLee changed the title 设置 sort 为false 还是能排序 设置 sort 为false 还是不能排序 Jan 6, 2024
@SanpLee SanpLee changed the title 设置 sort 为false 还是不能排序 设置 sort 为false 还是能排序 Jan 7, 2024
@Alfred-Skyblue
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants