import-vant.js 718 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. 'use strict'
  2. import Vue from 'vue'
  3. import {
  4. Tabbar,
  5. TabbarItem,
  6. Icon,
  7. NavBar,
  8. Button,
  9. Field,
  10. Toast,
  11. Popup,
  12. Tab,
  13. Tabs,
  14. Picker,
  15. Uploader,
  16. Calendar,
  17. DatetimePicker,
  18. ActionSheet,
  19. Switch,
  20. List,
  21. Dialog,
  22. ImagePreview,
  23. Checkbox,
  24. Radio,
  25. RadioGroup,
  26. Stepper
  27. } from 'vant'
  28. Vue.use(Tab).use(Tabs).use(Popup).use(Toast).use(Field).use(Button).use(NavBar).use(Icon).use(Tabbar).use(TabbarItem).use(Picker)
  29. .use(Uploader).use(Calendar).use(DatetimePicker).use(ActionSheet).use(Switch).use(List).use(Dialog).use(Checkbox).use(Radio).use(RadioGroup).use(Stepper)
  30. Vue.use(ImagePreview)
  31. Vue.$imagePreview = ImagePreview
  32. Vue.$toast = Toast