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