add drag delay

This commit is contained in:
jxxghp
2024-06-14 19:40:58 +08:00
parent be5b4b39e5
commit 23f4a70693
2 changed files with 4 additions and 4 deletions

View File

@@ -101,4 +101,4 @@
"resolutions": {
"postcss": "8"
}
}
}

View File

@@ -41,16 +41,16 @@ onMounted(() => {
<div class="ps ps--active-y mx-3 appcenter-grid" tabindex="0">
<draggable
v-model="appList"
item-key="pri"
item-key="title"
tag="VRow"
handle=".cursor-move"
delay="500"
@end="saveAppsOrder"
:component-data="{ 'class': 'ma-0 mt-n1' }"
>
<template #item="{ element }">
<VCol cols="6" md="4" lg="3" class="text-center cursor-pointer shortcut-icon">
<VCard class="pa-4" :to="element.to" variant="flat">
<VAvatar size="64" variant="text" class="cursor-move">
<VAvatar size="64" variant="text">
<VIcon size="48" :icon="element.icon" color="primary" />
</VAvatar>
<h6 class="text-base font-weight-medium mt-2 mb-0">{{ element.full_title || element.title }}</h6>