# Rating 评分

import { rating } from 'vigour';
// rating.name === 'vigour-rating'

# Example

# Basic usage

<vigour-rating v-model="val" />

# Max

The max attribute determines how many stars there should be, and the default value for this property is 5.

max 属性决定应该有多少个星星,该属性默认值为 5

<vigour-rating v-model="val" :max="6" />

# Clearable

The clearable attribute determines whether the value should be cleared to zero after repeatedly clicking on a star, which defaults to false.

clearable 属性决定是否应该在重复点击某个星星后把值清零,该属性默认值为 false

<vigour-rating v-model="val" clearable />

# Props

prop type default value available value
v-model number - -
max number 5 -
clearable boolean false -