2021-09-23 09:35:06 +00:00
|
|
|
|
import VFormRender from '@/components/form-render/index.vue'
|
2021-11-01 04:34:19 +00:00
|
|
|
|
import {loadExtension} from "@/extension/extension-loader"
|
|
|
|
|
import axios from "axios"
|
|
|
|
|
|
|
|
|
|
loadExtension()
|
2021-09-23 09:35:06 +00:00
|
|
|
|
|
|
|
|
|
VFormRender.install = function (Vue) {
|
|
|
|
|
Vue.component(VFormRender.name, VFormRender)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const components = [
|
|
|
|
|
VFormRender
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const install = (Vue) => {
|
|
|
|
|
components.forEach(component => {
|
|
|
|
|
Vue.component(component.name, component)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (typeof window !== 'undefined' && window.Vue) { /* script方式引入时主动调用install方法!! */
|
|
|
|
|
window.axios = axios
|
|
|
|
|
install(window.Vue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
install,
|
|
|
|
|
VFormRender
|
|
|
|
|
}
|