fix drag handle

This commit is contained in:
jxxghp
2024-05-09 18:30:25 +08:00
parent d005252f13
commit d857acc58e
13 changed files with 58 additions and 12 deletions
+8
View File
@@ -221,6 +221,12 @@ function dragOrderEnd() {
saveDashboardConfig()
}
// 拖动排序开始
function dragOrderBegin() {
// 如果是移动端则取消
if (!display.mdAndUp.value) return false
}
onBeforeMount(async () => {
await loadDashboardConfig()
getDashboardPlugins()
@@ -232,6 +238,8 @@ onBeforeMount(async () => {
<draggable
v-model="dashboardConfigs"
@end="dragOrderEnd"
:move="dragOrderBegin"
handle=".cursor-move"
item-key="id"
tag="VRow"
:component-data="{ 'class': 'match-height' }"