You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
435 B

<template>
<div class="md-layout-item" :class="`md-size-${size}`">
<img :src="img_src" @click="audio_puk">
</div>
</template>
<script>
export default {
name: 'CharacterImage',
props: {
size: {
type: Number,
default: 15
},
img_src: {
type: String
},
audio_src: {
type: String
}
},
methods: {
audio_puk() {
new Audio(this.audio_src).play();
}
}
}
</script>