main.js 923 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. Menu,
  12. MenuItem,
  13. MessageBox,
  14. Message,
  15. Input
  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(Menu)
  33. Vue.use(MenuItem)
  34. Vue.use(Input)
  35. Vue.prototype.$msgbox = MessageBox;
  36. Vue.prototype.$confirm = MessageBox.confirm
  37. Vue.prototype.$message = Message
  38. //Vue.use(ElementUI)
  39. Vue.config.productionTip = false
  40. new Vue({
  41. el: '#app',
  42. router,
  43. template: '<App/>',
  44. components: { App }
  45. })