vxe-table 3.21.10 → 3.21.11

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.
@@ -1236,6 +1236,7 @@ export default {
1236
1236
  return;
1237
1237
  }
1238
1238
  if (proxyConfig && isEnableConf(proxyOpts)) {
1239
+ $xeGrid.dispatchEvent('form-submit', params, params.$event);
1239
1240
  internalData.uFoot = true;
1240
1241
  $xeGrid.commitProxy('reload').then((rest) => {
1241
1242
  $xeGrid.dispatchEvent('proxy-query', Object.assign(Object.assign({}, rest), { isReload: true }), params.$event);
@@ -1243,7 +1244,9 @@ export default {
1243
1244
  internalData.uFoot = false;
1244
1245
  $xeGrid.updateQueryFooter();
1245
1246
  }
1246
- $xeGrid.dispatchEvent('form-submit', params, params.$event);
1247
+ else {
1248
+ $xeGrid.dispatchEvent('form-submit', params, params.$event);
1249
+ }
1247
1250
  },
1248
1251
  resetFormEvent(params) {
1249
1252
  const $xeGrid = this;
@@ -1254,7 +1257,10 @@ export default {
1254
1257
  const { $event } = params;
1255
1258
  const proxyOpts = $xeGrid.computeProxyOpts;
1256
1259
  if (proxyConfig && isEnableConf(proxyOpts)) {
1257
- $xeTable.clearScroll();
1260
+ $xeGrid.dispatchEvent('form-reset', params, $event);
1261
+ if ($xeTable) {
1262
+ $xeTable.clearScroll();
1263
+ }
1258
1264
  internalData.uFoot = true;
1259
1265
  $xeGrid.commitProxy('reload').then((rest) => {
1260
1266
  $xeGrid.dispatchEvent('proxy-query', Object.assign(Object.assign({}, rest), { isReload: true }), $event);
@@ -1262,7 +1268,9 @@ export default {
1262
1268
  internalData.uFoot = false;
1263
1269
  $xeGrid.updateQueryFooter();
1264
1270
  }
1265
- $xeGrid.dispatchEvent('form-reset', params, $event);
1271
+ else {
1272
+ $xeGrid.dispatchEvent('form-reset', params, $event);
1273
+ }
1266
1274
  },
1267
1275
  submitInvalidEvent(params) {
1268
1276
  const $xeGrid = this;