UNPKG

swiper-next

Version:
19 lines (18 loc) 373 B
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; } export { registerInstall, withInstall };