forked from extern/froscon-2023-demo
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