function parseType (props) {
  const {
    min,
    max,
    step,
    disabled,
    value,
    backgroundColor,
    activeColor,
    blockSize,
    blockColor,
    showValue,
    onChange,
    onChanging
  } = props

  // 抛出错误信息
  const throwErrorMsg = type => {
    throw new TypeError(type)
  }

  if (min) isNumber(min) ? '' : throwErrorMsg('min')
  if (max) isNumber(max) ? '' : throwErrorMsg('max')
  if (step) isNumber(step) ? '' : throwErrorMsg('step')
  if (value) isNumber(value) ? '' : throwErrorMsg('value')
  if (blockSize) isNumber(blockSize) ? '' : throwErrorMsg('blockSize')

  if (disabled) isBoolean(disabled) ? '' : throwErrorMsg('disabled')
  if (showValue) isBoolean(showValue) ? '' : throwErrorMsg('showValue')

  if (backgroundColor) {
    isString(backgroundColor) ? '' : throwErrorMsg('backgroundColor')
  }

  if (activeColor) isString(activeColor) ? '' : throwErrorMsg('activeColor')
  if (blockColor) isString(blockColor) ? '' : throwErrorMsg('blockColor')

  if (onChange) isFunction(onChange) ? '' : throwErrorMsg('onChange')
  if (onChanging) isFunction(onChanging) ? '' : throwErrorMsg('onChanging')
}
function parseType (props) {
  const {
    min,
    max,
    step,
    disabled,
    value,
    backgroundColor,
    activeColor,
    blockSize,
    blockColor,
    showValue,
    onChange,
    onChanging
  } = props

  // 抛出错误信息
  const throwErrorMsg = type => {
    throw new TypeError(type)
  }

  if (min) isNumber(min) ? '' : throwErrorMsg('min')
  if (max) isNumber(max) ? '' : throwErrorMsg('max')
  if (step) isNumber(step) ? '' : throwErrorMsg('step')
  if (value) isNumber(value) ? '' : throwErrorMsg('value')
  if (blockSize) isNumber(blockSize) ? '' : throwErrorMsg('blockSize')

  if (disabled) isBoolean(disabled) ? '' : throwErrorMsg('disabled')
  if (showValue) isBoolean(showValue) ? '' : throwErrorMsg('showValue')

  if (backgroundColor) {
    isString(backgroundColor) ? '' : throwErrorMsg('backgroundColor')
  }

  if (activeColor) isString(activeColor) ? '' : throwErrorMsg('activeColor')
  if (blockColor) isString(blockColor) ? '' : throwErrorMsg('blockColor')

  if (onChange) isFunction(onChange) ? '' : throwErrorMsg('onChange')
  if (onChanging) isFunction(onChanging) ? '' : throwErrorMsg('onChanging')
}
function parseType ( props ) { const { min , max , step , disabled , value , backgroundColor , activeColor , blockSize , blockColor , showValue , onChange , onChanging } = props // 抛出错误信息 const throwErrorMsg = type => { throw new TypeError ( type ) } if ( min ) isNumber ( min ) ? '' : throwErrorMsg ( 'min' ) if ( max ) isNumber ( max ) ? '' : throwErrorMsg ( 'max' ) if ( step ) isNumber ( step ) ? '' : throwErrorMsg ( 'step' ) if ( value ) isNumber ( value ) ? '' : throwErrorMsg ( 'value' ) if ( blockSize ) isNumber ( blockSize ) ? '' : throwErrorMsg ( 'blockSize' ) if ( disabled ) isBoolean ( disabled ) ? '' : throwErrorMsg ( 'disabled' ) if ( showValue ) isBoolean ( showValue ) ? '' : throwErrorMsg ( 'showValue' ) if ( backgroundColor ) { isString ( backgroundColor ) ? '' : throwErrorMsg ( 'backgroundColor' ) } if ( activeColor ) isString ( activeColor ) ? '' : throwErrorMsg ( 'activeColor' ) if ( blockColor ) isString ( blockColor ) ? '' : throwErrorMsg ( 'blockColor' ) if ( onChange ) isFunction ( onChange ) ? '' : throwErrorMsg ( 'onChange' ) if ( onChanging ) isFunction ( onChanging ) ? '' : throwErrorMsg ( 'onChanging' ) }
props 类型检测

@param {Object} props
props 类型检测
Parse type