main.js 1.58 KB
Newer Older
潘琦 committed
1 2 3 4 5
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import './permission' // 权限
潘琦 committed
6 7
import router from './router/index'
import store from './store'
潘琦 committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
import {
  Button,
  Cell,
  Field,
  Navbar,
  TabItem,
  Header,
  Popup,
  Picker,
  Spinner,
  Toast,
  MessageBox,
  TabContainer,
  TabContainerItem,
  DatetimePicker,
  Indicator,
  Actionsheet,
  Radio,
26
  Checklist,
潘琦 committed
27 28 29
  InfiniteScroll
} from 'mint-ui'
import 'mint-ui/lib/style.css'
30
import vueSignature from 'vue-signature'
31
import VueCookies from 'vue-cookies'
潘琦 committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

Vue.component(TabContainer.name, TabContainer)
Vue.component(TabContainerItem.name, TabContainerItem)
Vue.component(Button.name, Button)
Vue.component(Cell.name, Cell)
Vue.component(Field.name, Field)
Vue.component(Navbar.name, Navbar)
Vue.component(TabItem.name, TabItem)
Vue.component(Header.name, Header)
Vue.component(Popup.name, Popup)
Vue.component(Picker.name, Picker)
Vue.component(Spinner.name, Spinner)
Vue.component(DatetimePicker.name, DatetimePicker)
Vue.component(Actionsheet.name, Actionsheet)
Vue.component(Radio.name, Radio)
47
Vue.component(Checklist.name, Checklist)
潘琦 committed
48
Vue.use(InfiniteScroll)
49
Vue.use(vueSignature)
50 51
Vue.use(VueCookies)
VueCookies.config('7d')
潘琦 committed
52 53 54 55 56 57

Vue.prototype.$toast = Toast
Vue.prototype.$MessageBox = MessageBox
Vue.prototype.$Indicator = Indicator

Vue.config.productionTip = false
潘琦 committed
58
// Vue.http.options.emulateJSON = true
潘琦 committed
59 60 61 62 63 64 65 66 67

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})