|
@@ -24,7 +24,6 @@ const layouts = {
|
|
|
const { activeItem } = this.$listeners
|
|
|
const config = currentItem.__config__
|
|
|
const child = renderChildren.apply(this, arguments)
|
|
|
- console.log('col-layout--2222--', child, config)
|
|
|
let className = this.activeId === config.formId ? 'drawing-item active-from-item' : 'drawing-item'
|
|
|
if (this.formConf.unFocusedComponentBorder) className += ' unfocus-bordered'
|
|
|
let labelWidth = config.labelWidth ? `${config.labelWidth}px` : null
|
|
@@ -75,10 +74,9 @@ const layouts = {
|
|
|
const { activeItem } = this.$listeners
|
|
|
const config = currentItem.__config__
|
|
|
const className = this.activeId === config.formId
|
|
|
- ? 'drawing-row-item active-from-item'
|
|
|
- : 'drawing-row-item'
|
|
|
+ ? 'drawing-form-item active-from-item'
|
|
|
+ : 'drawing-form-item'
|
|
|
const child = renderChildren.apply(this, arguments)
|
|
|
- console.log('child---', child, config, config.children, arguments)
|
|
|
return (
|
|
|
<el-form
|
|
|
size={currentItem.size}
|
|
@@ -86,7 +84,6 @@ const layouts = {
|
|
|
class={`${currentItem.class} ${className}`}
|
|
|
nativeOnClick={event => { activeItem(currentItem); event.stopPropagation() }}
|
|
|
>
|
|
|
- <span class="component-name">{config.componentName}</span>
|
|
|
<draggable
|
|
|
list={config.children || []}
|
|
|
animation={340}
|
|
@@ -112,12 +109,9 @@ const layouts = {
|
|
|
|
|
|
function renderChildren(h, currentItem, index, list) {
|
|
|
const config = currentItem.__config__
|
|
|
- console.log('render child 1', config)
|
|
|
if (!Array.isArray(config.children)) return null
|
|
|
- console.log('render child 2', config.children)
|
|
|
return config.children.map((el, i) => {
|
|
|
const layout = layouts[el.__config__.layout]
|
|
|
- console.log('render child 3', layout)
|
|
|
if (layout) {
|
|
|
return layout.call(this, h, el, i, config.children)
|
|
|
}
|