Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoasjunior committed Oct 7, 2020
2 parents c2bbc6e + f565e94 commit ecdb894
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 86 deletions.
78 changes: 0 additions & 78 deletions src/components/EventCard/EventCard.vue

This file was deleted.

44 changes: 36 additions & 8 deletions src/components/cpmCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,36 @@
<p>{{cardData.description}}</p>
</v-card-text>

<v-expansion-panels>
<v-expansion-panels v-if="cardDataArray[0].comments != '' ">
<v-expansion-panel>
<v-expansion-panel-header>Comentários</v-expansion-panel-header>
<v-expansion-panel-content v-for="(comment, i) in cardData.comments" :key="i">
{{comment.user.name}}: {{comment.comment}}
<v-expansion-panel-content>

<div class="d-flex" v-for="(item, i) in cardDataArray" :key="i">

<v-avatar size="36" color="orange">
<v-icon v-if="!item.comments[i].user.avatar" dark>mdi-account-circle</v-icon>
<img v-else :src="item.comments[i].user.avatar" alt="avatar">
</v-avatar>

<strong class="ml-2 mt-1">{{ item.comments[0].user.name }}:</strong>

<p class="ml-2 mt-1">{{ item.comments[0].comment }}</p>
</div>

<v-card>
<v-textarea
outlined
v-model="newComent"
color="black"
label="Comentário"
:counter="500"
></v-textarea>

<v-btn class="ml-a">
Enviar
</v-btn>
</v-card>
</v-expansion-panel-content>
</v-expansion-panel>
</v-expansion-panels>
Expand All @@ -47,11 +72,14 @@
export default {
name: 'Card',
props: ['cardData'],
data() {
return {
}
},
data:() => ({
cardDataArray: [],
newComent:''
}),
created(){
this.cardDataArray.push(this.cardData)
}
}
</script>
Expand Down

0 comments on commit ecdb894

Please sign in to comment.