mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 07:28:37 +08:00
fix drag handle
This commit is contained in:
@@ -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' }"
|
||||
|
||||
Reference in New Issue
Block a user