移除已废弃组件。
parent
77779eefa9
commit
1439eb53d4
|
@ -1,10 +1,8 @@
|
||||||
import VFormRender from '@/components/form-render/index.vue'
|
import VFormRender from '@/components/form-render/index.vue'
|
||||||
import ContainerItem from "@/components/form-render/container-item";
|
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
VFormRender.install = function (Vue) {
|
VFormRender.install = function (Vue) {
|
||||||
Vue.component(VFormRender.name, VFormRender)
|
Vue.component(VFormRender.name, VFormRender)
|
||||||
Vue.component('container-item', ContainerItem)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const components = [
|
const components = [
|
||||||
|
@ -12,10 +10,6 @@ const components = [
|
||||||
]
|
]
|
||||||
|
|
||||||
const install = (Vue) => {
|
const install = (Vue) => {
|
||||||
/* 递归组件如需在递归组件的嵌套组件中使用,必须注册为全局组件,原因不明?? begin */
|
|
||||||
Vue.component('container-item', ContainerItem)
|
|
||||||
/* end */
|
|
||||||
|
|
||||||
components.forEach(component => {
|
components.forEach(component => {
|
||||||
Vue.component(component.name, component)
|
Vue.component(component.name, component)
|
||||||
})
|
})
|
||||||
|
|
|
@ -2,8 +2,6 @@ import axios from 'axios'
|
||||||
|
|
||||||
import VFormDesigner from '@/components/form-designer/index.vue'
|
import VFormDesigner from '@/components/form-designer/index.vue'
|
||||||
import VFormRender from '@/components/form-render/index.vue'
|
import VFormRender from '@/components/form-render/index.vue'
|
||||||
import ContainerWidget from "@/components/form-designer/form-widget/container-widget";
|
|
||||||
import ContainerItem from "@/components/form-render/container-item";
|
|
||||||
|
|
||||||
import '@/utils/directive'
|
import '@/utils/directive'
|
||||||
import '@/icons'
|
import '@/icons'
|
||||||
|
@ -11,12 +9,10 @@ import '@/iconfont/iconfont.css'
|
||||||
|
|
||||||
VFormDesigner.install = function (Vue) {
|
VFormDesigner.install = function (Vue) {
|
||||||
Vue.component(VFormDesigner.name, VFormDesigner)
|
Vue.component(VFormDesigner.name, VFormDesigner)
|
||||||
Vue.component('container-widget', ContainerWidget)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VFormRender.install = function (Vue) {
|
VFormRender.install = function (Vue) {
|
||||||
Vue.component(VFormRender.name, VFormRender)
|
Vue.component(VFormRender.name, VFormRender)
|
||||||
Vue.component('container-item', ContainerItem)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const components = [
|
const components = [
|
||||||
|
@ -25,11 +21,6 @@ const components = [
|
||||||
]
|
]
|
||||||
|
|
||||||
const install = (Vue) => {
|
const install = (Vue) => {
|
||||||
/* 递归组件如需在递归组件的嵌套组件中使用,必须注册为全局组件,原因不明?? begin */
|
|
||||||
Vue.component('container-widget', ContainerWidget)
|
|
||||||
Vue.component('container-item', ContainerItem)
|
|
||||||
/* end */
|
|
||||||
|
|
||||||
components.forEach(component => {
|
components.forEach(component => {
|
||||||
Vue.component(component.name, component)
|
Vue.component(component.name, component)
|
||||||
})
|
})
|
||||||
|
|
|
@ -7,19 +7,11 @@ import ElementUI from 'element-ui'
|
||||||
import './utils/directive'
|
import './utils/directive'
|
||||||
import './icons'
|
import './icons'
|
||||||
|
|
||||||
import ContainerWidget from "@/components/form-designer/form-widget/container-widget";
|
|
||||||
import ContainerItem from "@/components/form-render/container-item";
|
|
||||||
|
|
||||||
import 'element-ui/lib/theme-chalk/index.css'
|
import 'element-ui/lib/theme-chalk/index.css'
|
||||||
import '@/styles/index.scss'
|
import '@/styles/index.scss'
|
||||||
import '@/iconfont/iconfont.css'
|
import '@/iconfont/iconfont.css'
|
||||||
|
|
||||||
|
|
||||||
/* 递归组件如需在递归组件的嵌套组件中使用,必须注册为全局组件,原因不明?? begin */
|
|
||||||
Vue.component('container-widget', ContainerWidget)
|
|
||||||
Vue.component('container-item', ContainerItem)
|
|
||||||
/* end */
|
|
||||||
|
|
||||||
Vue.use(ElementUI, { size: 'small' })
|
Vue.use(ElementUI, { size: 'small' })
|
||||||
|
|
||||||
if (typeof window !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
|
|
Loading…
Reference in New Issue