已废弃
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
846 B

import QrcodeStream from "./components/QrcodeStream.vue";
import QrcodeCapture from "./components/QrcodeCapture.vue";
import QrcodeDropZone from "./components/QrcodeDropZone.vue";
// Install the components
export function install(Vue) {
Vue.component("qrcode-stream", QrcodeStream);
Vue.component("qrcode-capture", QrcodeCapture);
Vue.component("qrcode-drop-zone", QrcodeDropZone);
}
// Expose the components
export {QrcodeStream, QrcodeCapture, QrcodeDropZone};
/* -- Plugin definition & Auto-install -- */
/* You shouldn't have to modify the code below */
// Plugin
const plugin = {install};
export default plugin;
// Auto-install
let GlobalVue = null;
if (typeof window !== "undefined") {
GlobalVue = window.Vue;
} else if (typeof global !== "undefined") {
GlobalVue = global.Vue;
}
if (GlobalVue) {
GlobalVue.use(plugin);
}