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 +6 -5
- package/dist/style.css +1 -1
- package/es/grid/src/grid.js +4 -3
- package/es/style.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +4 -3
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +6 -5
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +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 +4 -3
- /package/es/{iconfont.1789279229903.ttf → iconfont.1789964231721.ttf} +0 -0
- /package/es/{iconfont.1789279229903.woff → iconfont.1789964231721.woff} +0 -0
- /package/es/{iconfont.1789279229903.woff2 → iconfont.1789964231721.woff2} +0 -0
- /package/lib/{iconfont.1789279229903.ttf → iconfont.1789964231721.ttf} +0 -0
- /package/lib/{iconfont.1789279229903.woff → iconfont.1789964231721.woff} +0 -0
- /package/lib/{iconfont.1789279229903.woff2 → iconfont.1789964231721.woff2} +0 -0
package/es/grid/src/grid.js
CHANGED
|
@@ -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
|
}
|