mirror of
https://github.com/sschum/froscon-2023-demo.git
synced 2024-11-21 23:33:08 +01:00
update
This commit is contained in:
parent
03f43618ff
commit
4ee9969860
@ -26,7 +26,9 @@
|
||||
|
||||
<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>
|
||||
<card :css-class="i % 2 === 0 ? 'bg-primary' : 'bg-secondary'">
|
||||
{{ card.content }} ({{ card.id }})
|
||||
</card>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -4,7 +4,9 @@ MyVueApp.component('card', {
|
||||
<div class="card">
|
||||
<div :class="cssClass">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"></h5>
|
||||
<h5 class="card-title">
|
||||
<slot></slot>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user