(props)
| 103 | } |
| 104 | |
| 105 | getHint (props) { |
| 106 | if (props.required) { |
| 107 | this.required = true; |
| 108 | } |
| 109 | |
| 110 | if (props.tip) { |
| 111 | return ''; |
| 112 | } |
| 113 | |
| 114 | let valueType = getValueType(props.type); |
| 115 | let hints = []; |
| 116 | |
| 117 | setHint(hints, this.props.type); |
| 118 | if (props.min) { setHint(hints, `min.${valueType}`, props.min); } |
| 119 | if (props.max) { setHint(hints, `max.${valueType}`, props.max); } |
| 120 | |
| 121 | return (props.label || '') + hints.join(', '); |
| 122 | } |
| 123 | |
| 124 | setChildrenHint (hints, children) { |
| 125 | Children.toArray(children).forEach((child) => { |
no test coverage detected