Last active
October 7, 2017 14:30
-
-
Save bmfteixeira/db9ba475d27623cbbeb1424f684f9aac to your computer and use it in GitHub Desktop.
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="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