Created
May 7, 2020 17:41
-
-
Save jakedohm/fec7f32d87b4b84cb4533cbcf6ea5927 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
<script> | |
export default { | |
props: { | |
color: { | |
type: String, | |
default: 'teal', | |
validator: value => ['teal', 'orange'].includes(value) | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment