同步操作将从 美乐低代码/MetaLowCode 企业级全栈低代码平台 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import config from "./config"import api from './api'import tool from './utils/tool'import http from "./utils/request"import { permission, rolePermission } from './utils/permission'import COMMON_CONFIG from './config/common';import scTable from './components/scTable/index.vue'import scTableColumn from './components/scTable/column.js'import scQrCode from './components/scQrCode/index.vue'import SimpleTable from './components/simpleTable/index.vue'import auth from './directives/auth'import auths from './directives/auths'import authsAll from './directives/authsAll'import role from './directives/role'import time from './directives/time'import copy from './directives/copy'import errorHandler from './utils/errorHandler'import SvgIcon from "./components/svgIcon/index.vue";import * as elIcons from '@element-plus/icons-vue'import * as scIcons from './assets/icons'import mlSelectUser from './components/mlSelectUser/index.vue';import mlSetConditions from './components/mlSetConditions/index.vue';import mlDialog from './components/mlDialog/index.vue';import mlPagination from './components/mlPagination/index.vue';import mlSearchInput from './components/mlSearchInput/index.vue';import mlSingleList from './components/mlSingleList/index.vue';import mlListDetails from './components/mlListDetails/index.vue';import mlActiveDialog from "./components/mlActiveDialog/index.vue";import mlEntityMenuAndList from "./components/mlEntityMenuAndList/index.vue";import mlLogo from './components/mlLogo/index.vue';import mlAvatar from './components/mlAvatar/index.vue';import mlUpload from "./components/mlUpload/index.vue";import mlWaterMark from './components/mlWaterMark/index.vue';import { ElMessage } from 'element-plus'export default {install(app) {//挂载全局对象app.config.globalProperties.$CloneDeep = data => JSON.parse(JSON.stringify(data));app.config.globalProperties.$CONFIG = config;app.config.globalProperties.$TOOL = tool;app.config.globalProperties.$HTTP = http;app.config.globalProperties.$API = api;app.config.globalProperties.$AUTH = permission;app.config.globalProperties.$ROLE = rolePermission;app.provide('$CONFIG',config)app.provide('$TOOL', tool);app.provide('$CloneDeep', (data) => JSON.parse(JSON.stringify(data)));app.provide('$API', api);app.provide('$ElMessage', ElMessage);app.provide('COMMON_CONFIG',COMMON_CONFIG);// 注册全局组件app.component('mlSelectUser', mlSelectUser);app.component('mlSetConditions', mlSetConditions);app.component('mlDialog', mlDialog);app.component('mlPagination', mlPagination);app.component('mlSearchInput', mlSearchInput);app.component('mlSingleList', mlSingleList);app.component('mlListDetails', mlListDetails);app.component('mlActiveDialog', mlActiveDialog);app.component('mlEntityMenuAndList', mlEntityMenuAndList);app.component('mlUpload', mlUpload);app.component('mlWaterMark', mlWaterMark);app.component('mlLogo', mlLogo);app.component('mlAvatar', mlAvatar);app.component('scTable', scTable);app.component('scTableColumn', scTableColumn);app.component('scQrCode', scQrCode);app.component('SimpleTable', SimpleTable)app.component('SvgIcon', SvgIcon)//注册全局指令app.directive('auth', auth)app.directive('auths', auths)app.directive('auths-all', authsAll)app.directive('role', role)app.directive('time', time)app.directive('copy', copy)//统一注册el-icon图标for(let icon in elIcons){app.component(`ElIcon${icon}`, elIcons[icon])}//统一注册sc-icon图标for(let icon in scIcons){app.component(`ScIcon${icon}`, scIcons[icon])}//关闭async-validator全局控制台警告window.ASYNC_VALIDATOR_NO_WARNING = 1//全局代码错误捕捉app.config.errorHandler = errorHandler}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。