ab-uploader
Version:
File uploader
25 lines (20 loc) • 464 B
JavaScript
import AbUploader from "./Uploader.vue";
function install(Vue) {
if (install.installed) return;
install.installed = true;
Vue.component("ab-uploader", AbUploader);
}
const plugin = {
install
};
let GlobalVue = null;
if (typeof window !== "undefined") {
GlobalVue = window.Vue;
} else if (typeof global !== "undefined") {
GlobalVue = global.vue;
}
if (GlobalVue) {
GlobalVue.use(plugin);
}
AbUploader.install = install;
export default AbUploader;