Skip to content

Instantly share code, notes, and snippets.

@bmfteixeira
Last active October 7, 2017 14:30
Show Gist options
  • Save bmfteixeira/db9ba475d27623cbbeb1424f684f9aac to your computer and use it in GitHub Desktop.
Save bmfteixeira/db9ba475d27623cbbeb1424f684f9aac to your computer and use it in GitHub Desktop.
<template>
<div :class="themeDiv"></div>
</template>
<script type="text/javascript">
export default {
props: {
plan: {
required: true,
type: String
}
},
computed: {
themeDiv: function () {
if (this.plan === 'pro') {
return 'blue'
} else if (this.plan === 'trial') {
return 'soft-blue'
} else {
return 'orange'
}
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment