Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/layouts/components/Tabs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ const tabsDrop = () => {
Sortable.create(document.querySelector(".el-tabs__nav") as HTMLElement, {
draggable: ".el-tabs__item",
animation: 300,
delay: 50, // 调整为50ms延迟
delayOnTouchOnly: true,
touchStartThreshold: 3, // 降低触摸移动阈值
forceFallback: true, // 强制使用fallback实现
fallbackTolerance: 3, // 设置fallback容差
onEnd({ newIndex, oldIndex }) {
const tabsList = [...tabStore.tabsMenuList];
const currRow = tabsList.splice(oldIndex as number, 1)[0];
Expand Down