Skip to content
  • This project
    • Loading...
  • Sign in

张浩 / br-client

Global
Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • br-client
  • node_modules
  • vue-qr
  • src
  • index.js
  • zhanghao's avatar
    commit · 71285982
    71285982
    zhanghao authored 2022-11-17 17:02:55 +0800
index.js 343 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import vueQr from './packages/index.js';
const components = [
    vueQr
]

const install = function(Vue, opts = {}) {
  components.map(component => {
    Vue.component(component.name, component);
  })
}

/* 支持使用标签的方式引入 */
if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue);
}

export default vueQr