Invalid prop: type check failed for prop "percentage". Expected Number, got String.
miljko1984 opened this issue · 3 comments
miljko1984 commented
Thanks in advance.
savoygu commented
@miljko1984 Before you pass 'percentage' props,you can make a conversion
miljko1984 commented
Hello,
I'm returning data from api, my simple code is - :percentage="projects.percentage". And it works well, just got console error message that i reference above.
Thanks
savoygu commented
@miljko1984 Already made changes by adding string type for percentage (https://github.com/vue-multiple/progress/blob/master/src/components/progress.vue#L52),and it's been posted on npm. In fact, this is not necessary, we can change the type of value passed in by doing something.