Last active
March 23, 2019 17:35
-
-
Save morgler/39e16a63a487b9272b7029fae5c66c01 to your computer and use it in GitHub Desktop.
This file contains hidden or 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="cssClassForStatus" /> | |
</template> | |
<script> | |
export default { | |
props: { | |
eventStatus: String, | |
}, | |
methods: { | |
cssClassForStatus() { | |
return `status-${this.eventStatus}` | |
}, | |
}, | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment