Last active
August 7, 2018 22:55
-
-
Save Jantho1990/2be851a244a56027363480c146f28ac8 to your computer and use it in GitHub Desktop.
StarRating Vue -- 8a
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="rating-inputs"> | |
<label for="rating">Rating</label> | |
<input | |
name="rating" | |
type="number" | |
/> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'RatingInputs', | |
props: { | |
rating: { | |
type: Number, | |
default: 5 | |
}, | |
minRating: { | |
type: Number, | |
default: 0 | |
}, | |
maxRating: { | |
type: Number, | |
default: 10 | |
}, | |
starRatio: { | |
type: Number, | |
default: 2 | |
}, | |
limit: { | |
type: Number, | |
default: 1000 | |
} | |
} | |
} | |
</script> | |
<style> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment