code: function parseType (props) {
    const {
      showInfo,
      percent,
      strokeWidth,
      activeColor,
      backgroundColor,
      active
    } = props
  
    // 抛出错误信息
    const throwErrorMsg = type => {
      throw new TypeError(type)
    }
    if (showInfo) isBoolean(showInfo) ? '' : throwErrorMsg('showInfo')
    if (active) isBoolean(active) ? '' : throwErrorMsg('active')
  
    if (percent) isNumber(percent) ? '' : throwErrorMsg('percent')
    if (strokeWidth) isNumber(strokeWidth) ? '' : throwErrorMsg('strokeWidth')
  
    if (activeColor) isString(activeColor) ? '' : throwErrorMsg('activeColor')
    if (backgroundColor) {
      isString(backgroundColor) ? '' : throwErrorMsg('backgroundColor')
    }
  }
docs: props 类型检测
  
  @param {Object} props