()
| 60 | } |
| 61 | |
| 62 | getBackground () { |
| 63 | let items = [], |
| 64 | icon = this.getIcon(0); |
| 65 | for (let i = 0; i < this.props.maxValue; i++) { |
| 66 | items.push(cloneElement(icon, { key: i })); |
| 67 | } |
| 68 | |
| 69 | return <div className="rct-rating-bg">{items}</div>; |
| 70 | } |
| 71 | |
| 72 | handleChange (val) { |
| 73 | this.setValue(val); |