UNPKG

swiper-next

Version:
19 lines (18 loc) 493 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const registerInstall = function(component) { component.install = function(Vue) { if (!Vue.component(component.name)) { Vue.component(component.name, component); } }; return component; }; function withInstall(comp) { comp.install = function(Vue) { Vue.component(comp.name, comp); }; return comp; } exports.registerInstall = registerInstall; exports.withInstall = withInstall;