vxe-table 4.22.0-beta.1 → 4.22.1

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.
@@ -419,13 +419,14 @@ export default defineVxeComponent({
419
419
  const submitFormEvent = (params) => {
420
420
  const { proxyConfig } = props;
421
421
  const proxyOpts = computeProxyOpts.value;
422
+ const formOptions = proxyOpts.formOptions || {};
422
423
  if (reactData.tableLoading) {
423
424
  return;
424
425
  }
425
426
  if (proxyConfig && isEnableConf(proxyOpts)) {
426
427
  $xeGrid.dispatchEvent('form-submit', params, params.$event);
427
428
  internalData.uFoot = true;
428
- $xeGrid.commitProxy('reload').then((rest) => {
429
+ $xeGrid.commitProxy(formOptions.submitMode || 'reload').then((rest) => {
429
430
  $xeGrid.dispatchEvent('proxy-query', Object.assign(Object.assign({}, rest), { isReload: true }), params.$event);
430
431
  });
431
432
  internalData.uFoot = false;
@@ -543,7 +544,7 @@ export default defineVxeComponent({
543
544
  // 处理插槽
544
545
  formOpts.items.forEach((item) => {
545
546
  XEUtils.each(item.slots, (func) => {
546
- if (!XEUtils.isFunction(func)) {
547
+ if (func && !XEUtils.isFunction(func)) {
547
548
  if (slots[func]) {
548
549
  formSlots[func] = slots[func];
549
550
  }
@@ -1681,7 +1682,7 @@ export default defineVxeComponent({
1681
1682
  XEUtils.eachTree(columns, (column) => {
1682
1683
  if (column.slots) {
1683
1684
  XEUtils.each(column.slots, (func) => {
1684
- if (!XEUtils.isFunction(func)) {
1685
+ if (func && !XEUtils.isFunction(func)) {
1685
1686
  if (!slots[func]) {
1686
1687
  errLog('vxe.error.notSlot', [func]);
1687
1688
  }