12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- import Vue from 'vue'
- import App from './App'
- import tabBar from "./components/tabber/tabber.vue" /* 引入导航栏*/
- Vue.component('tabBar', tabBar)
- import lyTree from "./components/ly-tree/ly-tree.vue" /* 引入树形插件*/
- Vue.component('ly-tree', lyTree)
- import cuCustom from './components/cu-custom.vue'
- Vue.component('cu-custom',cuCustom)/* 自定义顶部 如要使用,先把pages.json中的对应style清空*/
- import project from './components/project.vue'
- Vue.component('cu-project',project)/* 引入当前选择的项目组件*/
- import calendar from "@/components/calendar/calendar.vue"
- Vue.component('calendar', calendar);/* 引入日历组件 */
- import datetimePicker from "@/components/datetime-picker.vue"
- Vue.component('datetime-picker', datetimePicker);/* 引入时间下拉组件 */
- import datetime from "@/components/datetime.vue"
- Vue.component('datetime', datetime);/* 引入时间下拉组件 */
- import checkboxTree from './components/checkboxTree.vue';
- Vue.component('checkboxTree', checkboxTree);/* 引入多选框二级树状 */
- import radioTree from './components/radioTree.vue';
- Vue.component('radioTree', radioTree);/* 引入单选框二级树状 */
- import lFile from '@/components/l-file/l-file.vue'
- Vue.component('lFile', lFile);/* 引入文件选择器 */
- import formValidate from './js/form-validate.js' /* 引入表单验证*/
- import prompt from './js/prompt.js' /* 引入提示窗*/
- //引入请求封装
- import http from './common/request.js'
- Vue.prototype.http = http;
- //引入消息和任务数
- import tabberData from './components/tabber/tabber.js'
- Vue.prototype.tabberData = tabberData;
- //引入时间计算
- import intervalTime from './js/time.js'
- Vue.prototype.intervalTime = intervalTime;
- // 挂载到全局
- Vue.prototype.$formValidate = formValidate
- Vue.prototype.$prompt = prompt
- import dayjs from 'dayjs'
- import 'dayjs/locale/zh-cn' // 导入本地化语言
- dayjs.locale('zh-cn') // 使用本地化语言
- var customParseFormat = require('dayjs/plugin/customParseFormat')
- dayjs.extend(customParseFormat)
- Vue.prototype.$dayjs = dayjs
- Vue.config.productionTip = false
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- app.$mount()
|