We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当前需求:最低分值是1分,可是组件支持的最低值是0.当用户点击0分后,在js中更改样式为红色,不生效。定位原因是被覆盖掉。 解决办法是:使用两个Rater,一个只有1颗星,并且disabled,另一个只有4颗星,可用。 但是这样不太好。希望能够支持自定义Rater的最低分值或者最高分值。
The text was updated successfully, but these errors were encountered:
我也有同样的需求,看了源码,只需要在watch中修改如下代码即可
currentValue (val) { if (val < 1) this.currentValue = 1; this.updateStyle() this.$emit('input', val) },
希望作者大大能够增加一个最小值的prop
Sorry, something went wrong.
rater:add prop min #2439 (#2442)
21dc9a6
下个版本支持
No branches or pull requests
当前需求:最低分值是1分,可是组件支持的最低值是0.当用户点击0分后,在js中更改样式为红色,不生效。定位原因是被覆盖掉。
解决办法是:使用两个Rater,一个只有1颗星,并且disabled,另一个只有4颗星,可用。
但是这样不太好。希望能够支持自定义Rater的最低分值或者最高分值。
The text was updated successfully, but these errors were encountered: