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.
- package/es/grid/src/grid.js +11 -3
- package/es/style.css +1 -1
- package/es/table/src/methods.js +3 -3
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +9 -3
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +15 -6
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +4 -1
- package/lib/table/src/methods.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 +9 -3
- package/packages/table/src/methods.ts +3 -3
- /package/es/{iconfont.1780911698543.ttf → iconfont.1781074394243.ttf} +0 -0
- /package/es/{iconfont.1780911698543.woff → iconfont.1781074394243.woff} +0 -0
- /package/es/{iconfont.1780911698543.woff2 → iconfont.1781074394243.woff2} +0 -0
- /package/lib/{iconfont.1780911698543.ttf → iconfont.1781074394243.ttf} +0 -0
- /package/lib/{iconfont.1780911698543.woff → iconfont.1781074394243.woff} +0 -0
- /package/lib/{iconfont.1780911698543.woff2 → iconfont.1781074394243.woff2} +0 -0
package/es/grid/src/grid.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
$
|
|
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
|
-
|
|
1271
|
+
else {
|
|
1272
|
+
$xeGrid.dispatchEvent('form-reset', params, $event);
|
|
1273
|
+
}
|
|
1266
1274
|
},
|
|
1267
1275
|
submitInvalidEvent(params) {
|
|
1268
1276
|
const $xeGrid = this;
|