Skip to content

Rating 评分组件

评分组件,星级/心形、半星、只读。

基础用法

vue
<template>
  <parrot-rating />
</template>

API

Props

属性类型默认值说明
modelValuenumber0当前分值(v-model)
countnumber5星星数
sizestring'40rpx'尺寸
allowHalfbooleanfalse允许半星
readonlybooleanfalse只读
iconstring'★'图标
activeColorstring'#f59e0b'激活颜色

Slots

插槽说明
default默认内容

Released under the MIT License.