parent
c6d76d18c4
commit
388bf4a194
@ -1,19 +1,20 @@
|
|||||||
export default{
|
export default{
|
||||||
|
emits: ['editTeam'],
|
||||||
props: {
|
props: {
|
||||||
id: Number,
|
id: Number,
|
||||||
nom: String,
|
nom: String,
|
||||||
description: String
|
description: String
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
myfun: function() {
|
edit: function() {
|
||||||
console.log('to do')
|
this.$emit("editTeam", new Team(this.id,this.nom,this.description))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
template: `
|
template: `
|
||||||
<br>
|
<br>
|
||||||
<div id="teamCard">
|
<div id="teamCard">
|
||||||
<span>{{id}} {{nom}} description: {{description}}</span>
|
<span>{{id}} {{nom}} description: {{description}}</span>
|
||||||
<span @click="myfun" style="cursor: pointer"> - éditer</span>
|
<span @click="edit" style="cursor: pointer"> - éditer</span>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue