201 Star 3.2K Fork 850

vdpAdmin / Vue低代码可视化表单

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
install.js 883 Bytes
一键复制 编辑 原始数据 按行查看 历史
vdpAdmin 提交于 2022-02-21 14:33 . 版本更新到2.2.1:
import axios from 'axios'
import VFormDesigner from '@/components/form-designer/index.vue'
import VFormRender from '@/components/form-render/index.vue'
import {loadExtension} from "@/extension/extension-loader"
import '@/utils/directive'
import '@/icons'
import '@/iconfont/iconfont.css'
loadExtension()
VFormDesigner.install = function (Vue) {
Vue.component(VFormDesigner.name, VFormDesigner)
}
VFormRender.install = function (Vue) {
Vue.component(VFormRender.name, VFormRender)
}
const components = [
VFormDesigner,
VFormRender
]
const install = (Vue) => {
window.axios = axios
components.forEach(component => {
Vue.component(component.name, component)
})
}
if (typeof window !== 'undefined' && window.Vue) { /* script方式引入时主动调用install方法!! */
install(window.Vue);
}
export default {
install,
VFormDesigner,
VFormRender
}
JavaScript
1
https://gitee.com/vdpadmin/variant-form.git
git@gitee.com:vdpadmin/variant-form.git
vdpadmin
variant-form
Vue低代码可视化表单
master

搜索帮助