Last active
June 19, 2018 00:07
-
-
Save Jantho1990/f778e84049cb207b9a3967c735124a12 to your computer and use it in GitHub Desktop.
StarRating Vue -- 2a
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="star-rating"> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: "StarRating", | |
props: { | |
minRating: { | |
type: Number, | |
default: 0 | |
}, | |
maxRating: { | |
type: Number, | |
default: 10 | |
}, | |
rating: { | |
type: Number, | |
default: 5 | |
}, | |
starRatio: { | |
type: Number, | |
default: 2 | |
}, | |
limit: { | |
type: Number, | |
default: 1000 | |
} | |
} | |
}; | |
</script> | |
<style scoped> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment