forked from extern/froscon-2023-demo
update
This commit is contained in:
parent
ad97f8c66b
commit
03f43618ff
@ -26,7 +26,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6" v-for="(card, i) of cards" :key="card.id">
|
||||
<card></card>
|
||||
<card :css-class="i % 2 === 0 ? 'bg-primary' : 'bg-secondary'"></card>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,7 +1,8 @@
|
||||
MyVueApp.component('card', {
|
||||
props: ['cssClass'],
|
||||
template: `
|
||||
<div class="card">
|
||||
<div>
|
||||
<div :class="cssClass">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title"></h5>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user