form loading slot

This commit is contained in:
xuliangzhan
2024-03-06 08:41:05 +08:00
parent 13bf83190a
commit 0cef12c7c4
2 changed files with 4 additions and 4 deletions

View File

@@ -170,7 +170,7 @@ export default {
}, [
h('div', {
class: 'vxe-form--wrapper vxe-row'
}, customLayout ? (defaultSlot ? defaultSlot.call(this, h, {}) : []) : formItems.map((item, index) => {
}, customLayout ? (defaultSlot ? this.callSlot(defaultSlot, {}, h) : []) : formItems.map((item, index) => {
return h(VxeFormConfigItem, {
key: index,
props: {
@@ -181,7 +181,7 @@ export default {
h('div', {
class: 'vxe-form-slots',
ref: 'hideItem'
}, customLayout ? [] : (defaultSlot ? this.callSlot(defaultSlot, {}) : [])),
}, customLayout ? [] : (defaultSlot ? this.callSlot(defaultSlot, {}, h) : [])),
/**
* 加载中
*/
@@ -190,7 +190,7 @@ export default {
props: {
value: loading
}
}, loadingSlot ? this.callSlot(loadingSlot, {}) : []),
}, loadingSlot ? this.callSlot(loadingSlot, {}, h) : []),
/**
* 工具提示
*/

View File

@@ -1168,7 +1168,7 @@ export default {
icon: loadingOpts.icon,
text: loadingOpts.text
}
}, this.callSlot($scopedSlots.loading, {})),
}, this.callSlot($scopedSlots.loading, {}, h)),
/**
* 筛选
*/