()
| 160 | } |
| 161 | |
| 162 | renderTip () { |
| 163 | let { tip, errorText } = this.props; |
| 164 | let { validations, hints } = this.state; |
| 165 | hints = tip || hints; |
| 166 | |
| 167 | if (validations) { |
| 168 | // if has tip,use tip |
| 169 | if (errorText) { validations = errorText; } |
| 170 | return <span key="tip" className="error">{validations}</span>; |
| 171 | } |
| 172 | |
| 173 | if (hints) { |
| 174 | return <span key="tip" className="hint">{hints}</span>; |
| 175 | } else { |
| 176 | return; |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | propsExtend (props) { |
| 181 | props.itemBind = this.itemBind; |