rax-example
评分组件,一共五颗星,暂不支持半个星星,暂不支持点击
Install
$ npm install rax-example --save
Usage
import RaxExample from 'rax-example';
API
Props
score, fullScore = 5, around
name | type | default | describe |
---|---|---|---|
score | number | '' | 分数 |
fullScore | 总分 | 5 | describe |
around | boolean | 默认向下取整 | 是否取四舍五入 |
Function
name | param | return | describe |
---|---|---|---|
name | Object | / | describe |
Example
import { createElement, render } from 'rax';
import DriverUniversal from 'driver-universal';
import RaxExample from 'rax-example';
render(<RaxExample />, document.body, { driver: DriverUniversal });