Last active
July 7, 2017 19:02
-
-
Save afontcu/57099e0926894115aa5875f841b5423a to your computer and use it in GitHub Desktop.
Media.vue 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="o-media"> | |
<div class="o-media__img"> | |
<img v-bind="{ src, alt }" /> | |
</div> | |
<div class="o-media__body"> | |
<slot></slot> | |
</div> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: "Media", | |
data () { | |
return {} | |
}, | |
props: { | |
src: String, | |
alt: String | |
}, | |
} | |
</script> | |
<style lang="scss"> | |
.o-media {...} | |
... | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment