chore: move all options to component props

This commit is contained in:
kolaente 2023-04-10 20:44:49 +02:00
parent a0d9fa667a
commit f8f4a30fac
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 5 deletions

View File

@ -1,7 +1,8 @@
<template>
<draggable
v-model="availableProjects"
v-bind="dragOptions"
animation="100"
ghostClass="ghost"
group="projects"
@start="() => drag = true"
@end="saveProjectPosition"
@ -52,10 +53,6 @@ const emit = defineEmits<{
}>()
const drag = ref(false)
const dragOptions = {
animation: 100,
ghostClass: 'ghost',
}
const projectStore = useProjectStore()