main.js 813 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import Vue from 'vue'
  2. //import ElementUI from 'element-ui'
  3. import {
  4. Button,
  5. Form,
  6. FormItem,
  7. Row,
  8. Col,
  9. Table,
  10. TableColumn,
  11. Popover,
  12. Menu,
  13. Submenu,
  14. MenuItem,
  15. Tag
  16. } from 'element-ui'
  17. import lang from 'element-ui/lib/locale/lang/en'
  18. import locale from 'element-ui/lib/locale'
  19. import 'element-ui/lib/theme-chalk/index.css'
  20. import './utils/less/custom.less'
  21. import App from './App.vue'
  22. import router from './router'
  23. import 'whatwg-fetch'
  24. locale.use(lang)
  25. Vue.use(Button)
  26. Vue.use(Form)
  27. Vue.use(FormItem)
  28. Vue.use(Row)
  29. Vue.use(Col)
  30. Vue.use(Table)
  31. Vue.use(TableColumn)
  32. Vue.use(Popover)
  33. Vue.use(Menu)
  34. Vue.use(Submenu)
  35. Vue.use(MenuItem)
  36. Vue.use(Tag)
  37. Vue.config.productionTip = false
  38. new Vue({
  39. el: '#app',
  40. router,
  41. template: '<App/>',
  42. components: { App }
  43. })