lazy-use.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. import Vue from 'vue'
  2. import 'element-ui/lib/theme-chalk/index.css'
  3. import {
  4. Notification,
  5. Popover,
  6. Switch,
  7. Dropdown,
  8. DropdownMenu,
  9. DropdownItem,
  10. Message,
  11. Container,
  12. Header,
  13. Aside,
  14. Main,
  15. Footer,
  16. Menu,
  17. Submenu,
  18. MenuItem,
  19. MenuItemGroup,
  20. Button,
  21. Image,
  22. Loading,
  23. Row,
  24. Col,
  25. MessageBox,
  26. Form,
  27. FormItem,
  28. Input,
  29. Divider,
  30. Link,
  31. Tooltip,
  32. Autocomplete,
  33. Scrollbar,
  34. Avatar,
  35. Radio,
  36. RadioGroup,
  37. Progress,
  38. Dialog,
  39. Checkbox,
  40. Table,
  41. TableColumn,
  42. Breadcrumb,
  43. BreadcrumbItem,
  44. Pagination,
  45. } from 'element-ui'
  46. Vue.use(Popover)
  47. Vue.use(Switch)
  48. Vue.use(Dropdown)
  49. Vue.use(DropdownMenu)
  50. Vue.use(DropdownItem)
  51. Vue.use(Container)
  52. Vue.use(Header)
  53. Vue.use(Aside)
  54. Vue.use(Main)
  55. Vue.use(Footer)
  56. Vue.use(Menu)
  57. Vue.use(Submenu)
  58. Vue.use(MenuItem)
  59. Vue.use(MenuItemGroup)
  60. Vue.use(Button)
  61. Vue.use(Image)
  62. Vue.use(Row)
  63. Vue.use(Col)
  64. Vue.use(Input)
  65. Vue.use(Form)
  66. Vue.use(FormItem)
  67. Vue.use(Divider)
  68. Vue.use(Link)
  69. Vue.use(Tooltip)
  70. Vue.use(Autocomplete)
  71. Vue.use(Scrollbar)
  72. Vue.use(Avatar)
  73. Vue.use(Radio)
  74. Vue.use(Checkbox)
  75. Vue.use(RadioGroup)
  76. Vue.use(Progress)
  77. Vue.use(Dialog)
  78. Vue.use(Loading.directive)
  79. Vue.use(Table)
  80. Vue.use(TableColumn)
  81. Vue.use(Breadcrumb)
  82. Vue.use(BreadcrumbItem)
  83. Vue.use(Pagination)
  84. Vue.prototype.$notify = Notification
  85. Vue.prototype.$message = Message
  86. Vue.prototype.$confirm = MessageBox.confirm
  87. Vue.prototype.$prompt = MessageBox.prompt
  88. Vue.prototype.$alert = MessageBox.alert
  89. Vue.prototype.$dialog = MessageBox.Dialog
  90. process.env.NODE_ENV !== 'production' && console.warn('[Lumen-IM] NOTICE: element-ui use lazy-load.')