vxe-table 4.14.7 → 4.14.9
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 +18 -2
- package/es/style.css +1 -1
- package/es/table/module/custom/hook.js +2 -2
- package/es/table/src/table.js +17 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +18 -2
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +24 -8
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/custom/hook.js +2 -2
- package/lib/table/module/custom/hook.min.js +1 -1
- package/lib/table/src/table.js +2 -2
- 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 +1 -1
- package/packages/grid/src/grid.ts +23 -3
- package/packages/table/module/custom/hook.ts +2 -2
- package/packages/table/src/table.ts +17 -2
- /package/es/{iconfont.1753520194267.ttf → iconfont.1753928269615.ttf} +0 -0
- /package/es/{iconfont.1753520194267.woff → iconfont.1753928269615.woff} +0 -0
- /package/es/{iconfont.1753520194267.woff2 → iconfont.1753928269615.woff2} +0 -0
- /package/lib/{iconfont.1753520194267.ttf → iconfont.1753928269615.ttf} +0 -0
- /package/lib/{iconfont.1753520194267.woff → iconfont.1753928269615.woff} +0 -0
- /package/lib/{iconfont.1753520194267.woff2 → iconfont.1753928269615.woff2} +0 -0
package/es/grid/src/grid.js
CHANGED
|
@@ -343,7 +343,7 @@ export default defineVxeComponent({
|
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
|
-
const
|
|
346
|
+
const handleSortEvent = (params) => {
|
|
347
347
|
const $xeTable = refTable.value;
|
|
348
348
|
const { proxyConfig } = props;
|
|
349
349
|
const { computeSortOpts } = $xeTable.getComputeMaps();
|
|
@@ -359,9 +359,16 @@ export default defineVxeComponent({
|
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
+
};
|
|
363
|
+
const sortChangeEvent = (params) => {
|
|
364
|
+
handleSortEvent(params);
|
|
362
365
|
$xeGrid.dispatchEvent('sort-change', params, params.$event);
|
|
363
366
|
};
|
|
364
|
-
const
|
|
367
|
+
const clearAllSortEvent = (params) => {
|
|
368
|
+
handleSortEvent(params);
|
|
369
|
+
$xeGrid.dispatchEvent('clear-all-sort', params, params.$event);
|
|
370
|
+
};
|
|
371
|
+
const handleFilterEvent = (params) => {
|
|
365
372
|
const $xeTable = refTable.value;
|
|
366
373
|
const { proxyConfig } = props;
|
|
367
374
|
const { computeFilterOpts } = $xeTable.getComputeMaps();
|
|
@@ -377,8 +384,15 @@ export default defineVxeComponent({
|
|
|
377
384
|
});
|
|
378
385
|
}
|
|
379
386
|
}
|
|
387
|
+
};
|
|
388
|
+
const filterChangeEvent = (params) => {
|
|
389
|
+
handleFilterEvent(params);
|
|
380
390
|
$xeGrid.dispatchEvent('filter-change', params, params.$event);
|
|
381
391
|
};
|
|
392
|
+
const clearAllFilterEvent = (params) => {
|
|
393
|
+
handleFilterEvent(params);
|
|
394
|
+
$xeGrid.dispatchEvent('clear-all-filter', params, params.$event);
|
|
395
|
+
};
|
|
382
396
|
const submitFormEvent = (params) => {
|
|
383
397
|
const { proxyConfig } = props;
|
|
384
398
|
const proxyOpts = computeProxyOpts.value;
|
|
@@ -611,9 +625,11 @@ export default defineVxeComponent({
|
|
|
611
625
|
if (proxyConfig && isEnableConf(proxyOpts)) {
|
|
612
626
|
if (proxyOpts.sort) {
|
|
613
627
|
tableOns.onSortChange = sortChangeEvent;
|
|
628
|
+
tableOns.onClearAllSort = clearAllSortEvent;
|
|
614
629
|
}
|
|
615
630
|
if (proxyOpts.filter) {
|
|
616
631
|
tableOns.onFilterChange = filterChangeEvent;
|
|
632
|
+
tableOns.onClearAllFilter = clearAllFilterEvent;
|
|
617
633
|
}
|
|
618
634
|
}
|
|
619
635
|
const slotObj = {};
|