main.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import Vue from 'vue'
  2. import App from './App'
  3. import tabBar from "./components/tabber/tabber.vue" /* 引入导航栏*/
  4. Vue.component('tabBar', tabBar)
  5. import lyTree from "./components/ly-tree/ly-tree.vue" /* 引入树形插件*/
  6. Vue.component('ly-tree', lyTree)
  7. import cuCustom from './components/cu-custom.vue'
  8. Vue.component('cu-custom',cuCustom)/* 自定义顶部 如要使用,先把pages.json中的对应style清空*/
  9. import project from './components/project.vue'
  10. Vue.component('cu-project',project)/* 引入当前选择的项目组件*/
  11. import calendar from "@/components/calendar/calendar.vue"
  12. Vue.component('calendar', calendar);/* 引入日历组件 */
  13. import datetimePicker from "@/components/datetime-picker.vue"
  14. Vue.component('datetime-picker', datetimePicker);/* 引入时间下拉组件 */
  15. import datetime from "@/components/datetime.vue"
  16. Vue.component('datetime', datetime);/* 引入时间下拉组件 */
  17. import checkboxTree from './components/checkboxTree.vue';
  18. Vue.component('checkboxTree', checkboxTree);/* 引入多选框二级树状 */
  19. import radioTree from './components/radioTree.vue';
  20. Vue.component('radioTree', radioTree);/* 引入单选框二级树状 */
  21. import lFile from '@/components/l-file/l-file.vue'
  22. Vue.component('lFile', lFile);/* 引入文件选择器 */
  23. import formValidate from './js/form-validate.js' /* 引入表单验证*/
  24. import prompt from './js/prompt.js' /* 引入提示窗*/
  25. //引入请求封装
  26. import http from './common/request.js'
  27. Vue.prototype.http = http;
  28. //引入消息和任务数
  29. import tabberData from './components/tabber/tabber.js'
  30. Vue.prototype.tabberData = tabberData;
  31. //引入时间计算
  32. import intervalTime from './js/time.js'
  33. Vue.prototype.intervalTime = intervalTime;
  34. // 挂载到全局
  35. Vue.prototype.$formValidate = formValidate
  36. Vue.prototype.$prompt = prompt
  37. import dayjs from 'dayjs'
  38. import 'dayjs/locale/zh-cn' // 导入本地化语言
  39. dayjs.locale('zh-cn') // 使用本地化语言
  40. var customParseFormat = require('dayjs/plugin/customParseFormat')
  41. dayjs.extend(customParseFormat)
  42. Vue.prototype.$dayjs = dayjs
  43. Vue.config.productionTip = false
  44. App.mpType = 'app'
  45. const app = new Vue({
  46. ...App
  47. })
  48. app.$mount()