Rate
Brief Introduction
The Rate component is used for users to rate content.
You can use <MYRate></MYRate> or <MYRate /> to implement a rating component.
Basic Usage
Use v-model to bind the rating value. The default rating range is 0-5.
Code Demo
展开代码
Disabled State
Use the disabled prop to disable the rating component.
Code Demo
展开代码
API Reference
Props
| Prop | Description | Type | Options | Default |
|---|---|---|---|---|
| disabled | Whether to disable | boolean | — | false |
Type Definitions
typescript
interface RateProps {
disabled?: boolean;
}