64c6bdd815d143083e7d65f8218f00d7e9100c5d.svn-base 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /**
  2. * 按需加载antd组件
  3. */
  4. import Vue from 'vue'
  5. // base library
  6. import {
  7. ConfigProvider,
  8. Layout,
  9. Input,
  10. InputNumber,
  11. Button,
  12. Switch,
  13. Radio,
  14. Checkbox,
  15. Select,
  16. Card,
  17. Form,
  18. Row,
  19. Col,
  20. Modal,
  21. Table,
  22. Tabs,
  23. Icon,
  24. Badge,
  25. Popover,
  26. Dropdown,
  27. List,
  28. Avatar,
  29. Breadcrumb,
  30. Steps,
  31. Spin,
  32. Menu,
  33. Drawer,
  34. Tooltip,
  35. Alert,
  36. Tag,
  37. Divider,
  38. DatePicker,
  39. TimePicker,
  40. Upload,
  41. Progress,
  42. Skeleton,
  43. Popconfirm,
  44. PageHeader,
  45. Result,
  46. Statistic,
  47. Descriptions,
  48. message,
  49. notification,
  50. Empty,
  51. Tree,
  52. TreeSelect,
  53. Carousel,
  54. Pagination,
  55. FormModel,
  56. Cascader,
  57. Slider,
  58. Transfer,
  59. Rate,
  60. Collapse,
  61. } from 'ant-design-vue'
  62. import Viser from 'viser-vue'
  63. Vue.use(ConfigProvider)
  64. Vue.use(Layout)
  65. Vue.use(Input)
  66. Vue.use(InputNumber)
  67. Vue.use(Button)
  68. Vue.use(Switch)
  69. Vue.use(Radio)
  70. Vue.use(Checkbox)
  71. Vue.use(Select)
  72. Vue.use(Card)
  73. Vue.use(Form)
  74. Vue.use(Row)
  75. Vue.use(Col)
  76. Vue.use(Modal)
  77. Vue.use(Table)
  78. Vue.use(Tabs)
  79. Vue.use(Icon)
  80. Vue.use(Badge)
  81. Vue.use(Popover)
  82. Vue.use(Dropdown)
  83. Vue.use(List)
  84. Vue.use(Avatar)
  85. Vue.use(Breadcrumb)
  86. Vue.use(Steps)
  87. Vue.use(Spin)
  88. Vue.use(Menu)
  89. Vue.use(Drawer)
  90. Vue.use(Tooltip)
  91. Vue.use(Alert)
  92. Vue.use(Tag)
  93. Vue.use(Divider)
  94. Vue.use(DatePicker)
  95. Vue.use(TimePicker)
  96. Vue.use(Upload)
  97. Vue.use(Progress)
  98. Vue.use(Skeleton)
  99. Vue.use(Popconfirm)
  100. Vue.use(PageHeader)
  101. Vue.use(Result)
  102. Vue.use(Statistic)
  103. Vue.use(Descriptions)
  104. Vue.use(Empty)
  105. Vue.use(Tree)
  106. Vue.use(TreeSelect)
  107. Vue.use(Carousel)
  108. Vue.use(Pagination)
  109. Vue.use(FormModel)
  110. Vue.use(Cascader)
  111. Vue.use(Slider)
  112. Vue.use(Transfer)
  113. Vue.use(Rate)
  114. Vue.use(Collapse)
  115. Vue.prototype.$confirm = Modal.confirm
  116. Vue.prototype.$message = message
  117. Vue.prototype.$notification = notification
  118. Vue.prototype.$info = Modal.info
  119. Vue.prototype.$success = Modal.success
  120. Vue.prototype.$error = Modal.error
  121. Vue.prototype.$warning = Modal.warning
  122. process.env.NODE_ENV !== 'production' && console.warn('[jeecg-boot-vue] NOTICE: Antd use lazy-load.')