main.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import store from './store'
  4. import router from './router/index'
  5. import './common/vueFilters'
  6. import 'babel-polyfill'
  7. import { Button, Icon, Tag, Swipe, SwipeItem, Popup, Picker,
  8. DropdownMenu, DropdownItem, Search, PullRefresh, Toast, List,
  9. Collapse, CollapseItem, Tab, Tabs, Row, Col, Cell, CellGroup,
  10. Circle, Field, DatetimePicker, Image, Loading,
  11. ActionSheet, RadioGroup, Radio, Checkbox, CheckboxGroup,
  12. CountDown, Panel, Dialog, Sticky, Rate, Switch, ImagePreview, NoticeBar, NavBar, Divider} from 'vant'
  13. Vue.use(Button).use(Icon).use(Tag).use(Swipe).use(SwipeItem)
  14. .use(Popup).use(Picker).use(DropdownMenu).use(DropdownItem).use(Search)
  15. .use(PullRefresh).use(Toast).use(List).use(Collapse).use(CollapseItem)
  16. .use(Tab).use(Tabs).use(Row).use(Col).use(Cell).use(CellGroup)
  17. .use(Circle).use(Field).use(DatetimePicker).use(Image).use(Loading)
  18. .use(ActionSheet).use(RadioGroup).use(Radio).use(Checkbox).use(CheckboxGroup)
  19. .use(CountDown).use(Panel).use(Dialog).use(Sticky).use(Rate).use(Switch).use(ImagePreview).use(NoticeBar)
  20. .use(NavBar).use(Divider)
  21. Vue.config.productionTip = false
  22. // import Vconsole from 'vconsole'
  23. // const vconsole = new Vconsole()
  24. import VueAMap from 'vue-amap'
  25. Vue.use(VueAMap)
  26. VueAMap.initAMapApiLoader({
  27. key: 'c7856e7c812d299cff150e74d60ea608',
  28. plugin: ['Geolocation', 'PlaceSearch', 'Geocoder', 'ToolBar'],
  29. v: '1.4.4'
  30. })
  31. new Vue({
  32. store,
  33. router,
  34. render: h => h(App)
  35. }).$mount('#app')