2 Star 14 Fork 3

ujjldn / vform-pro

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
install-render.js 994 Bytes
一键复制 编辑 原始数据 按行查看 历史
ujjldn 提交于 2023-03-24 21:48 . dd
import axios from 'axios'
import VFormRender from '@/components/form-render/index.vue'
import ContainerItems from '@/components/form-render/container-item/index'
import {registerIcon} from '@/utils/el-icons'
import 'virtual:svg-icons-register'
import '@/iconfont/iconfont.css'
import { installI18n } from '@/utils/i18n'
import { loadExtension } from '@/extension/extension-loader'
VFormRender.install = function (app) {
installI18n(app)
loadExtension(app)
app.use(ContainerItems)
registerIcon(app)
app.component(VFormRender.name, VFormRender)
}
const components = [
VFormRender
]
const install = (app) => {
installI18n(app)
loadExtension(app)
app.use(ContainerItems)
registerIcon(app)
components.forEach(component => {
app.component(component.name, component)
})
window.axios = axios
}
if (typeof window !== 'undefined' && window.Vue) { /* script方式引入时赋值axios!! */
//window.axios = axios
}
export default {
install,
VFormRender
}
JavaScript
1
https://gitee.com/ujjldn/vform.git
git@gitee.com:ujjldn/vform.git
ujjldn
vform
vform-pro
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891