vxe-table 4.19.10 → 4.19.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.
- package/dist/all.esm.js +13 -7
- package/dist/style.css +1 -1
- package/es/grid/src/grid.js +8 -2
- package/es/style.css +1 -1
- package/es/table/src/table.js +3 -3
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +6 -2
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +12 -5
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/table.js +4 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +6 -2
- package/packages/table/src/table.ts +3 -3
- /package/es/{iconfont.1780911752570.ttf → iconfont.1781074420923.ttf} +0 -0
- /package/es/{iconfont.1780911752570.woff → iconfont.1781074420923.woff} +0 -0
- /package/es/{iconfont.1780911752570.woff2 → iconfont.1781074420923.woff2} +0 -0
- /package/lib/{iconfont.1780911752570.ttf → iconfont.1781074420923.ttf} +0 -0
- /package/lib/{iconfont.1780911752570.woff → iconfont.1781074420923.woff} +0 -0
- /package/lib/{iconfont.1780911752570.woff2 → iconfont.1781074420923.woff2} +0 -0
package/es/grid/src/grid.js
CHANGED
|
@@ -422,6 +422,7 @@ export default defineVxeComponent({
|
|
|
422
422
|
return;
|
|
423
423
|
}
|
|
424
424
|
if (proxyConfig && isEnableConf(proxyOpts)) {
|
|
425
|
+
$xeGrid.dispatchEvent('form-submit', params, params.$event);
|
|
425
426
|
internalData.uFoot = true;
|
|
426
427
|
$xeGrid.commitProxy('reload').then((rest) => {
|
|
427
428
|
$xeGrid.dispatchEvent('proxy-query', Object.assign(Object.assign({}, rest), { isReload: true }), params.$event);
|
|
@@ -429,7 +430,9 @@ export default defineVxeComponent({
|
|
|
429
430
|
internalData.uFoot = false;
|
|
430
431
|
updateQueryFooter();
|
|
431
432
|
}
|
|
432
|
-
|
|
433
|
+
else {
|
|
434
|
+
$xeGrid.dispatchEvent('form-submit', params, params.$event);
|
|
435
|
+
}
|
|
433
436
|
};
|
|
434
437
|
const resetFormEvent = (params) => {
|
|
435
438
|
const $xeTable = refTable.value;
|
|
@@ -437,6 +440,7 @@ export default defineVxeComponent({
|
|
|
437
440
|
const { $event } = params;
|
|
438
441
|
const proxyOpts = computeProxyOpts.value;
|
|
439
442
|
if (proxyConfig && isEnableConf(proxyOpts)) {
|
|
443
|
+
$xeGrid.dispatchEvent('form-reset', params, $event);
|
|
440
444
|
if ($xeTable) {
|
|
441
445
|
$xeTable.clearScroll();
|
|
442
446
|
}
|
|
@@ -447,7 +451,9 @@ export default defineVxeComponent({
|
|
|
447
451
|
internalData.uFoot = false;
|
|
448
452
|
updateQueryFooter();
|
|
449
453
|
}
|
|
450
|
-
|
|
454
|
+
else {
|
|
455
|
+
$xeGrid.dispatchEvent('form-reset', params, $event);
|
|
456
|
+
}
|
|
451
457
|
};
|
|
452
458
|
const submitInvalidEvent = (params) => {
|
|
453
459
|
$xeGrid.dispatchEvent('form-submit-invalid', params, params.$event);
|