(val = this.props.value)
| 16 | }, |
| 17 | |
| 18 | initTime(val = this.props.value){ |
| 19 | const {simple} = this.props; |
| 20 | let {hour, min, sec} = timeStr2Obj(val, { simple }); |
| 21 | let value = this.formatValue(hour, min, sec); |
| 22 | return {hour, min, sec, value} |
| 23 | }, |
| 24 | |
| 25 | formatValue(hour, min, sec){ |
| 26 | return this.props.simple ? `${hour}:${min}` : `${hour}:${min}:${sec}` |
nothing calls this directly
no test coverage detected
searching dependent graphs…