form 修复自定义插槽渲染无效问题

This commit is contained in:
xuliangzhan
2021-02-03 23:04:11 +08:00
parent 631bcb5188
commit 620f2ec7f2
3 changed files with 5 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

@@ -121,12 +121,12 @@ function renderItems (h, _vm) {
}
}
let contentVNs = []
if (compConf && compConf.renderItemContent) {
if (slots && slots.default) {
contentVNs = _vm.callSlot(slots.default, params, h)
} else if (compConf && compConf.renderItemContent) {
contentVNs = compConf.renderItemContent.call(_vm, h, itemRender, params)
} else if (compConf && compConf.renderItem) {
contentVNs = compConf.renderItem.call(_vm, h, itemRender, params)
} else if (slots && slots.default) {
contentVNs = _vm.callSlot(slots.default, params, h)
} else if (field) {
contentVNs = [`${XEUtils.get(data, field)}`]
}

View File

@@ -733,10 +733,10 @@ export default {
}
}
if (this.mouseOpts.area && this.mouseOpts.selected) {
UtilTools.error('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected'])
UtilTools.warn('vxe.error.errConflicts', ['mouse-config.area', 'mouse-config.selected'])
}
if (this.mouseOpts.area && this.checkboxOpts.range) {
UtilTools.error('vxe.error.errConflicts', ['mouse-config.area', 'checkbox-config.range'])
UtilTools.warn('vxe.error.errConflicts', ['mouse-config.area', 'checkbox-config.range'])
}
if (this.treeConfig && this.mouseOpts.area) {
UtilTools.error('vxe.error.noTree', ['mouse-config.area'])