edit modules

game-view
Bastien JACQUELIN 2 years ago
parent ef22a1ab3d
commit 4bb5dd45a0

@ -1,8 +1,8 @@
export default{ export default{
emits:[], emits:[],
props: ['card'],
data: function(){ data: function(){
return{ return{
} }
}, },
methods:{ methods:{
@ -11,6 +11,6 @@ export default{
} }
}, },
template:` template:`
<div v-bind:style="{margin:'20px', border: '2px solid black', color: 'red', fontSize: '20px' }">yess</div> <div v-bind:style="{margin:'20px', border: '2px solid black', color: 'red', fontSize: '20px' }">{{card}}</div>
` `
} }

@ -2,7 +2,7 @@ export default{
emits:[], emits:[],
data: function(){ data: function(){
return{ return{
cards:[] card:new Card({"filling":"empty"})
} }
}, },
methods:{ methods:{
@ -14,7 +14,7 @@ export default{
<div v-bind:style="{border: '3px solid black', fontSize: '20px', display:'flex', margin:'20px 10em 20px 20px'}"> <div v-bind:style="{border: '3px solid black', fontSize: '20px', display:'flex', margin:'20px 10em 20px 20px'}">
<div v-for="n in 10"> <div v-for="n in 10">
{{ n }} {{ n }}
<card-module></card-module> <card-module :card={card}></card-module>
</div> </div>
</div> </div>
` `

Loading…
Cancel
Save