globalComponents.js 385 B

12345678910111213141516171819
  1. // 组件
  2. import uiJessibuca from '@/components/ui-jessibuca/index.vue'
  3. import uiScrollbar from '@/components/ui-scrollbar/index.vue'
  4. const components = {
  5. // 组件
  6. uiJessibuca,
  7. uiScrollbar
  8. }
  9. const install = function (Vue, opts = {}) {
  10. Object.keys(components).forEach((name) => {
  11. Vue.component(name, components[name])
  12. })
  13. }
  14. export default {
  15. install
  16. }