set route /mix & /draggable
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
<template>
|
||||
<div class="deck">
|
||||
<button class="px-4 py-2 text-black hover:text-black bg-esyellow transition-colors relative z-30"
|
||||
@click="cardStore.revealAllCards(tracks)">
|
||||
reveal
|
||||
</button>
|
||||
<draggable v-model="tracks" item-key="id" class="draggable-container" @start="drag = true" @end="onDragEnd">
|
||||
<template #item="{ element: track }">
|
||||
<card :key="track.id" :track="track" tabindex="0" :is-face-up="track.isFaceUp" class="draggable-item"
|
||||
@@ -12,7 +16,9 @@
|
||||
<script setup>
|
||||
import { useDataStore } from '~/store/data'
|
||||
import draggable from 'vuedraggable'
|
||||
import { useCardStore } from '~/store/card'
|
||||
|
||||
const cardStore = useCardStore()
|
||||
const drag = ref(false)
|
||||
const tracks = ref([])
|
||||
// Configuration du layout
|
||||
|
||||
Reference in New Issue
Block a user