File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <button
3
+ class =" flex-shrink-0 px-3 text-slate-400 hover:text-indigo-600 dark:text-slate-500 dark:hover:text-teal-500 cursor-move drag-handle"
4
+ >
5
+ <mdicon name =" drag" size =" 20" />
6
+ </button >
7
+ </template >
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ function handleChange(event: DraggableChangeEvent) {
114
114
@update:model-value =" handleMove"
115
115
@change =" handleChange"
116
116
item-key =" id"
117
+ handle =" .drag-handle"
117
118
>
118
119
<template #item =" { element: todo } " >
119
120
<li class =" mt-2 first-of-type:mt-0" >
@@ -134,6 +135,7 @@ function handleChange(event: DraggableChangeEvent) {
134
135
@update:model-value =" handleMove"
135
136
@change =" handleChange"
136
137
item-key =" id"
138
+ handle =" .drag-handle"
137
139
>
138
140
<template #item =" { element: todo } " >
139
141
<li class =" mt-2 first-of-type:mt-0" >
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ function formatDate(dateISO: string) {
70
70
</div >
71
71
<template #post >
72
72
<DeleteButton @click =" $emit('delete')" />
73
+ <DragButton />
73
74
</template >
74
75
</BaseItem >
75
76
</template >
You can’t perform that action at this time.
0 commit comments