chore: move all options to component props
This commit is contained in:
parent
a0d9fa667a
commit
f8f4a30fac
|
@ -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()
|
||||
|
||||
|
|
Reference in New Issue
Block a user