()
| 103 | } |
| 104 | |
| 105 | renderCheckbox () { |
| 106 | let { selectAble } = this.props; |
| 107 | if (!selectAble) { |
| 108 | return; |
| 109 | } |
| 110 | |
| 111 | let { status } = this.state; |
| 112 | let check = ['unchecked', 'half-checked', 'checked'][status]; |
| 113 | let className = classnames( |
| 114 | 'check-handle', |
| 115 | ['', 'half-checked', 'checked'][status] |
| 116 | ); |
| 117 | |
| 118 | return ( |
| 119 | <a className={className} onClick={this.check}> |
| 120 | <i className={'tree-icon ' + check} /> |
| 121 | </a> |
| 122 | ); |
| 123 | } |
| 124 | |
| 125 | renderMarks () { |
| 126 | let className; |