vxe-table 4.22.0-beta.1 → 4.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -543,7 +543,7 @@ export default defineVxeComponent({
543
543
  // 处理插槽
544
544
  formOpts.items.forEach((item) => {
545
545
  XEUtils.each(item.slots, (func) => {
546
- if (!XEUtils.isFunction(func)) {
546
+ if (func && !XEUtils.isFunction(func)) {
547
547
  if (slots[func]) {
548
548
  formSlots[func] = slots[func];
549
549
  }
@@ -1681,7 +1681,7 @@ export default defineVxeComponent({
1681
1681
  XEUtils.eachTree(columns, (column) => {
1682
1682
  if (column.slots) {
1683
1683
  XEUtils.each(column.slots, (func) => {
1684
- if (!XEUtils.isFunction(func)) {
1684
+ if (func && !XEUtils.isFunction(func)) {
1685
1685
  if (!slots[func]) {
1686
1686
  errLog('vxe.error.notSlot', [func]);
1687
1687
  }