main.js 1.5 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'
潘琦 committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45

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)
46
Vue.component(Checklist.name, Checklist)
潘琦 committed
47
Vue.use(InfiniteScroll)
48
Vue.use(vueSignature)
潘琦 committed
49 50 51 52 53 54

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

Vue.config.productionTip = false
潘琦 committed
55
// Vue.http.options.emulateJSON = true
潘琦 committed
56 57 58 59 60 61 62 63 64

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