加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.js 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
etgyd 提交于 2024-02-02 10:22 . 上传到私有仓库
import axios from 'axios'
import table from './components/table'
import form from './components/form'
import dialog from './components/dialog'
import popover from './components/popover'
import preview from './components/preview'
import upload from './components/upload'
import treeTable from './components/treeTable'
import fileUpload from './components/fileUpload'
import wangEditor from './components/wangEditor'
import validate from './utils/validate.js'
import util from './utils/util.js'
import { message, warning, success, error, alert, prompt, confirm, loading } from './utils/message.js'
export default {
install:function(Vue, options) {
Vue.prototype.axios = axios;
Vue.prototype.util = util;
Vue.prototype.validator = validate;
Vue.prototype.message = message;
Vue.prototype.warning = warning;
Vue.prototype.success = success;
Vue.prototype.error = error;
Vue.prototype.alert = alert;
Vue.prototype.prompt = prompt;
Vue.prototype.confirm = confirm;
Vue.prototype.goLoading = loading;
Vue.component('ComponentTable',table);
Vue.component('ComponentDialog',dialog);
Vue.component('ComponentForm',form);
Vue.component('ComponentPopover',popover);
Vue.component('ComponentPreview',preview);
Vue.component('ComponentUpload',upload);
Vue.component('ComponentTreeTable',treeTable);
Vue.component('ComponentFileUpload',fileUpload);
Vue.component('ComponentWangEditor',wangEditor);
},
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化