src/mode/mix/config.js
function configValidator(ops) {
  let renderError = false;
  const { vuescroll } = ops;

  // validate modes
  if (!~modes.indexOf(vuescroll.mode)) {
    error(
      `Unknown mode: ${
        vuescroll.mode
      },the vuescroll's option "mode" should be one of the ${modes}`
    );
    renderError = true;
  }

  return renderError;
}
function configValidator(ops) {
  let renderError = false;
  const { vuescroll } = ops;

  // validate modes
  if (!~modes.indexOf(vuescroll.mode)) {
    error(
      `Unknown mode: ${
        vuescroll.mode
      },the vuescroll's option "mode" should be one of the ${modes}`
    );
    renderError = true;
  }

  return renderError;
}
function configValidator ( ops ) { let renderError = false ; const { vuescroll } = ops ; // validate modes if ( ! ~ modes . indexOf ( vuescroll . mode ) ) { error ( ` ${ vuescroll . mode } ${ modes } ` ) ; renderError = true ; } return renderError ; }
validate the options
@export
@param {any} ops
validate the options