chore: move all options to component props
This commit is contained in:
parent
a0d9fa667a
commit
f8f4a30fac
|
@ -1,7 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<draggable
|
<draggable
|
||||||
v-model="availableProjects"
|
v-model="availableProjects"
|
||||||
v-bind="dragOptions"
|
animation="100"
|
||||||
|
ghostClass="ghost"
|
||||||
group="projects"
|
group="projects"
|
||||||
@start="() => drag = true"
|
@start="() => drag = true"
|
||||||
@end="saveProjectPosition"
|
@end="saveProjectPosition"
|
||||||
|
@ -52,10 +53,6 @@ const emit = defineEmits<{
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const drag = ref(false)
|
const drag = ref(false)
|
||||||
const dragOptions = {
|
|
||||||
animation: 100,
|
|
||||||
ghostClass: 'ghost',
|
|
||||||
}
|
|
||||||
|
|
||||||
const projectStore = useProjectStore()
|
const projectStore = useProjectStore()
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user