Ohm-Management - Projektarbeit B-ME
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.

index.js 769B

1234567891011121314151617181920212223242526272829
  1. import './scss/buefy-build.scss'
  2. import * as components from './components'
  3. import config, { setOptions } from './utils/config'
  4. import { use, registerComponentProgrammatic } from './utils/plugins'
  5. const Buefy = {
  6. install(Vue, options = {}) {
  7. // Options
  8. setOptions(Object.assign(config, options))
  9. // Components
  10. for (let componentKey in components) {
  11. Vue.use(components[componentKey])
  12. }
  13. // Config component
  14. const BuefyProgrammatic = {
  15. setOptions(options) {
  16. setOptions(Object.assign(config, options))
  17. }
  18. }
  19. registerComponentProgrammatic(Vue, '$buefy', BuefyProgrammatic)
  20. }
  21. }
  22. use(Buefy)
  23. export default Buefy