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.
package/dist/all.esm.js CHANGED
@@ -47,7 +47,7 @@ function getDefaultConfig(val1, def1) {
47
47
  return XEUtils.eqNull(val1) ? def1 : val1;
48
48
  }
49
49
 
50
- const version = "4.22.0-beta.1";
50
+ const version = "4.22.1";
51
51
  VxeUI.version = version;
52
52
  VxeUI.tableVersion = version;
53
53
  VxeUI.setConfig({
@@ -931,7 +931,7 @@ function getPopupWrapperElement(panelElem) {
931
931
  }
932
932
 
933
933
  const { log } = VxeUI;
934
- const tableVersion = `table v${"4.22.0-beta.1"}`;
934
+ const tableVersion = `table v${"4.22.1"}`;
935
935
  function createComponentLog(name) {
936
936
  const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
937
937
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -31742,13 +31742,14 @@ var VxeGridComponent = defineVxeComponent({
31742
31742
  const submitFormEvent = (params) => {
31743
31743
  const { proxyConfig } = props;
31744
31744
  const proxyOpts = computeProxyOpts.value;
31745
+ const formOptions = proxyOpts.formOptions || {};
31745
31746
  if (reactData.tableLoading) {
31746
31747
  return;
31747
31748
  }
31748
31749
  if (proxyConfig && isEnableConf(proxyOpts)) {
31749
31750
  $xeGrid.dispatchEvent('form-submit', params, params.$event);
31750
31751
  internalData.uFoot = true;
31751
- $xeGrid.commitProxy('reload').then((rest) => {
31752
+ $xeGrid.commitProxy(formOptions.submitMode || 'reload').then((rest) => {
31752
31753
  $xeGrid.dispatchEvent('proxy-query', Object.assign(Object.assign({}, rest), { isReload: true }), params.$event);
31753
31754
  });
31754
31755
  internalData.uFoot = false;
@@ -31866,7 +31867,7 @@ var VxeGridComponent = defineVxeComponent({
31866
31867
  // 处理插槽
31867
31868
  formOpts.items.forEach((item) => {
31868
31869
  XEUtils.each(item.slots, (func) => {
31869
- if (!XEUtils.isFunction(func)) {
31870
+ if (func && !XEUtils.isFunction(func)) {
31870
31871
  if (slots[func]) {
31871
31872
  formSlots[func] = slots[func];
31872
31873
  }
@@ -33004,7 +33005,7 @@ var VxeGridComponent = defineVxeComponent({
33004
33005
  XEUtils.eachTree(columns, (column) => {
33005
33006
  if (column.slots) {
33006
33007
  XEUtils.each(column.slots, (func) => {
33007
- if (!XEUtils.isFunction(func)) {
33008
+ if (func && !XEUtils.isFunction(func)) {
33008
33009
  if (!slots[func]) {
33009
33010
  errLog('vxe.error.notSlot', [func]);
33010
33011
  }