code: 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;
  }
docs: validate the options
  @export
  @param {any} ops