mirror of
https://github.com/gotson/komga.git
synced 2026-02-15 11:54:48 +01:00
parent
2528d74f35
commit
e72f4ab57e
1 changed files with 6 additions and 7 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
>
|
>
|
||||||
<draggable v-model="localItems"
|
<draggable v-model="localItems"
|
||||||
class="d-flex flex-wrap"
|
class="d-flex flex-wrap"
|
||||||
|
handle=".handle"
|
||||||
v-bind="dragOptions"
|
v-bind="dragOptions"
|
||||||
>
|
>
|
||||||
<transition-group type="transition" :name="!draggable ? 'flip-list' : null"
|
<transition-group type="transition" :name="!draggable ? 'flip-list' : null"
|
||||||
|
|
@ -22,6 +23,7 @@
|
||||||
:class="draggable ? 'draggable-item' : undefined"
|
:class="draggable ? 'draggable-item' : undefined"
|
||||||
>
|
>
|
||||||
<item-card
|
<item-card
|
||||||
|
class="item-card"
|
||||||
:item="item"
|
:item="item"
|
||||||
:width="itemWidth"
|
:width="itemWidth"
|
||||||
:selected="active"
|
:selected="active"
|
||||||
|
|
@ -33,6 +35,7 @@
|
||||||
|
|
||||||
<v-slide-y-reverse-transition>
|
<v-slide-y-reverse-transition>
|
||||||
<v-icon v-if="draggable"
|
<v-icon v-if="draggable"
|
||||||
|
class="handle"
|
||||||
style="position: absolute; bottom: 0; left: 50%; margin-left: -12px;"
|
style="position: absolute; bottom: 0; left: 50%; margin-left: -12px;"
|
||||||
>
|
>
|
||||||
mdi-drag-horizontal
|
mdi-drag-horizontal
|
||||||
|
|
@ -169,20 +172,16 @@ export default Vue.extend({
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.ghost * {
|
.ghost .item-card {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
background: #c8ebfb;
|
background: #c8ebfb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.draggable-item * {
|
.handle {
|
||||||
cursor: move;
|
cursor: grab;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flip-list-move {
|
.flip-list-move {
|
||||||
transition: transform 0.4s;
|
transition: transform 0.4s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fab-delete * {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue