vxe-table 3.24.2 → 3.24.4
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 +15 -7
- package/es/style.css +1 -1
- package/es/table/src/methods.js +1 -1
- package/es/table/src/table.js +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +17 -6
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +5083 -5072
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +1 -1
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +1 -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 +16 -7
- package/packages/table/src/methods.ts +1 -1
- package/packages/table/src/table.ts +1 -1
- /package/es/{iconfont.1789983617913.ttf → iconfont.1791617048832.ttf} +0 -0
- /package/es/{iconfont.1789983617913.woff → iconfont.1791617048832.woff} +0 -0
- /package/es/{iconfont.1789983617913.woff2 → iconfont.1791617048832.woff2} +0 -0
- /package/lib/{iconfont.1789983617913.ttf → iconfont.1791617048832.ttf} +0 -0
- /package/lib/{iconfont.1789983617913.woff → iconfont.1791617048832.woff} +0 -0
- /package/lib/{iconfont.1789983617913.woff2 → iconfont.1791617048832.woff2} +0 -0
package/es/grid/src/grid.js
CHANGED
|
@@ -6,8 +6,8 @@ import { VxeUI } from '../../ui';
|
|
|
6
6
|
import { getSlotVNs } from '../../ui/src/vn';
|
|
7
7
|
import { createComponentLog } from '../../ui/src/log';
|
|
8
8
|
import { tableProps } from '../../table/src/props';
|
|
9
|
-
import VxeTableComponent from '../../table
|
|
10
|
-
import VxeToolbarComponent from '../../toolbar
|
|
9
|
+
import VxeTableComponent from '../../table';
|
|
10
|
+
import VxeToolbarComponent from '../../toolbar';
|
|
11
11
|
const { warnLog, errLog } = createComponentLog('grid');
|
|
12
12
|
const { getConfig, getI18n, commands, globalEvents, globalMixins, createEvent, GLOBAL_EVENT_KEYS, renderEmptyElement } = VxeUI;
|
|
13
13
|
const tableMethods = {};
|
|
@@ -123,6 +123,11 @@ export default {
|
|
|
123
123
|
const props = $xeGrid;
|
|
124
124
|
return Object.assign({}, getConfig().grid.pagerConfig, props.pagerConfig);
|
|
125
125
|
},
|
|
126
|
+
computePagerProps() {
|
|
127
|
+
const $xeGrid = this;
|
|
128
|
+
const pagerOpts = $xeGrid.computePagerOpts;
|
|
129
|
+
return Object.assign({}, pagerOpts, { enabled: undefined, slots: undefined });
|
|
130
|
+
},
|
|
126
131
|
formOpts() {
|
|
127
132
|
const $xeGrid = this;
|
|
128
133
|
return $xeGrid.computeFormOpts;
|
|
@@ -789,7 +794,8 @@ export default {
|
|
|
789
794
|
}
|
|
790
795
|
break;
|
|
791
796
|
}
|
|
792
|
-
case 'queryFooter':
|
|
797
|
+
case 'queryFooter':
|
|
798
|
+
case 'query_footer': {
|
|
793
799
|
const bqfMethod = ajax.beforeQueryFooter;
|
|
794
800
|
const qfMethod = ajax.queryFooter;
|
|
795
801
|
const aqfMethod = ajax.afterQueryFooter;
|
|
@@ -1141,7 +1147,7 @@ export default {
|
|
|
1141
1147
|
if ($form) {
|
|
1142
1148
|
return $form.validate();
|
|
1143
1149
|
}
|
|
1144
|
-
return
|
|
1150
|
+
return Promise.resolve();
|
|
1145
1151
|
},
|
|
1146
1152
|
validateFormField(field) {
|
|
1147
1153
|
const $xeGrid = this;
|
|
@@ -1149,7 +1155,7 @@ export default {
|
|
|
1149
1155
|
if ($form) {
|
|
1150
1156
|
return $form.validateField(field);
|
|
1151
1157
|
}
|
|
1152
|
-
return
|
|
1158
|
+
return Promise.resolve();
|
|
1153
1159
|
},
|
|
1154
1160
|
clearFormValidate(field) {
|
|
1155
1161
|
const $xeGrid = this;
|
|
@@ -1373,12 +1379,13 @@ export default {
|
|
|
1373
1379
|
const { $event } = params;
|
|
1374
1380
|
const proxyOpts = $xeGrid.computeProxyOpts;
|
|
1375
1381
|
if (proxyConfig && isEnableConf(proxyOpts)) {
|
|
1382
|
+
const formOptions = proxyOpts.formOptions || {};
|
|
1376
1383
|
$xeGrid.dispatchEvent('form-reset', params, $event);
|
|
1377
1384
|
if ($xeTable) {
|
|
1378
1385
|
$xeTable.clearScroll();
|
|
1379
1386
|
}
|
|
1380
1387
|
internalData.uFoot = true;
|
|
1381
|
-
$xeGrid.commitProxy('reload').then((rest) => {
|
|
1388
|
+
$xeGrid.commitProxy(formOptions.resetMode === 'reset_form' ? 'query' : 'reload').then((rest) => {
|
|
1382
1389
|
$xeGrid.dispatchEvent('proxy-query', Object.assign(Object.assign({}, rest), { isReload: true }), $event);
|
|
1383
1390
|
});
|
|
1384
1391
|
internalData.uFoot = false;
|
|
@@ -1747,6 +1754,7 @@ export default {
|
|
|
1747
1754
|
const { proxyConfig, pagerConfig } = props;
|
|
1748
1755
|
const proxyOpts = $xeGrid.computeProxyOpts;
|
|
1749
1756
|
const pagerOpts = $xeGrid.computePagerOpts;
|
|
1757
|
+
const pagerProps = $xeGrid.computePagerProps;
|
|
1750
1758
|
const pagerSlot = slots.pager;
|
|
1751
1759
|
if ((pagerConfig && isEnableConf(pagerOpts)) || slots.pager) {
|
|
1752
1760
|
return h('div', {
|
|
@@ -1759,7 +1767,7 @@ export default {
|
|
|
1759
1767
|
VxeUIPagerComponent
|
|
1760
1768
|
? h(VxeUIPagerComponent, {
|
|
1761
1769
|
ref: 'refPager',
|
|
1762
|
-
props: Object.assign(Object.assign({},
|
|
1770
|
+
props: Object.assign(Object.assign({}, pagerProps), (proxyConfig && isEnableConf(proxyOpts) ? reactData.tablePage : {})),
|
|
1763
1771
|
on: {
|
|
1764
1772
|
'page-change': $xeGrid.pageChangeEvent
|
|
1765
1773
|
},
|