chore(tasks): move drag options to direct attributes instead of v-bind
(cherry picked from commit f4d628550f361fb514bdc887727ca542958520ef)
This commit is contained in:
parent
2b0fbe2575
commit
9e5d6bad8d
@ -45,7 +45,6 @@
|
|||||||
|
|
||||||
<draggable
|
<draggable
|
||||||
v-if="tasks && tasks.length > 0"
|
v-if="tasks && tasks.length > 0"
|
||||||
v-bind="DRAG_OPTIONS"
|
|
||||||
v-model="tasks"
|
v-model="tasks"
|
||||||
group="tasks"
|
group="tasks"
|
||||||
handle=".handle"
|
handle=".handle"
|
||||||
@ -59,6 +58,8 @@
|
|||||||
},
|
},
|
||||||
type: 'transition-group'
|
type: 'transition-group'
|
||||||
}"
|
}"
|
||||||
|
:animation="100"
|
||||||
|
ghost-class="task-ghost"
|
||||||
@start="() => drag = true"
|
@start="() => drag = true"
|
||||||
@end="saveTaskPosition"
|
@end="saveTaskPosition"
|
||||||
>
|
>
|
||||||
@ -128,10 +129,6 @@ const props = defineProps<{
|
|||||||
const ctaVisible = ref(false)
|
const ctaVisible = ref(false)
|
||||||
|
|
||||||
const drag = ref(false)
|
const drag = ref(false)
|
||||||
const DRAG_OPTIONS = {
|
|
||||||
animation: 100,
|
|
||||||
ghostClass: 'task-ghost',
|
|
||||||
} as const
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
tasks: allTasks,
|
tasks: allTasks,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user