mirror of
https://github.com/sschum/froscon-2023-demo.git
synced 2024-11-22 07:43:15 +01:00
update
This commit is contained in:
parent
4ee9969860
commit
51024df8e8
@ -26,7 +26,8 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6" v-for="(card, i) of cards" :key="card.id">
|
||||
<card :css-class="i % 2 === 0 ? 'bg-primary' : 'bg-secondary'">
|
||||
<card :css-class="i % 2 === 0 ? 'bg-primary' : 'bg-secondary'"
|
||||
v-on:card-click="removeCard(i)">
|
||||
{{ card.content }} ({{ card.id }})
|
||||
</card>
|
||||
</div>
|
||||
|
@ -1,7 +1,7 @@
|
||||
MyVueApp.component('card', {
|
||||
props: ['cssClass'],
|
||||
template: `
|
||||
<div class="card">
|
||||
<div class="card" v-on:click="$emit('card-click')">
|
||||
<div :class="cssClass">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">
|
||||
|
Loading…
Reference in New Issue
Block a user