Skip to content

RatingControl-DEMO


vue
<fv-RatingControl value="3">
</fv-RatingControl>

RatingControl-Half Rate


vue
<fv-RatingControl value="2.5" :halfRate="true">
</fv-RatingControl>

RatingControl-Clearable


vue
<fv-RatingControl value="2.5" :halfRate="true" :isClear="true">
</fv-RatingControl>

RatingControl-Readonly


vue
<fv-RatingControl value="3.5" :halfRate="true" :isClear="true" readonly>
</fv-RatingControl>

RatingControl-Customize


vue
<fv-RatingControl value="1.5" defaultIcon="Heart" selectedIcon="HeartFill" borderColor="rgba(200, 200, 200, 1)" selectedColor="rgba(173, 38, 45, 1)" :halfRate="true" :isClear="true">
</fv-RatingControl>

Propoties


属性(attr)类型(type)必填(required)默认值(default)说明(statement)
valueNumberNo0分值
maxRateNumberNo5最大值
halfRateBooleanNofalse是否允许半分
defaultIconStringNoFavoriteStar默认图标
selectedIconStringNoFavoriteStarFill选中图标
borderColor[string(color)]Norgba(200, 200, 200, 1)边框颜色
selectedColor[string(color)]Norgba(255, 149, 0, 1)选中颜色
isClearBooleanNofalse是否允许清除
readonlyBooleanNofalse只读
theme['system','dark','light','custom']No'system'主题色

Events


事件名(Name)参数类型(args)说明(statement)
changeNumber分值改变时触发

MIT Licensed