vxe-table 4.20.10 → 4.20.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 +20 -6
- package/dist/style.css +1 -1
- package/es/grid/src/grid.js +2 -2
- package/es/style.css +1 -1
- package/es/table/src/table.js +16 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +2 -2
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +6 -6
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +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 +2 -2
- package/packages/table/src/table.ts +16 -2
- /package/es/{iconfont.1785940490728.ttf → iconfont.1786329229929.ttf} +0 -0
- /package/es/{iconfont.1785940490728.woff → iconfont.1786329229929.woff} +0 -0
- /package/es/{iconfont.1785940490728.woff2 → iconfont.1786329229929.woff2} +0 -0
- /package/lib/{iconfont.1785940490728.ttf → iconfont.1786329229929.ttf} +0 -0
- /package/lib/{iconfont.1785940490728.woff → iconfont.1786329229929.woff} +0 -0
- /package/lib/{iconfont.1785940490728.woff2 → iconfont.1786329229929.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -44,7 +44,7 @@ function eqEmptyValue(cellValue) {
|
|
|
44
44
|
return cellValue === '' || XEUtils.eqNull(cellValue);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
const version = "4.20.
|
|
47
|
+
const version = "4.20.11";
|
|
48
48
|
VxeUI.version = version;
|
|
49
49
|
VxeUI.tableVersion = version;
|
|
50
50
|
VxeUI.setConfig({
|
|
@@ -758,7 +758,7 @@ function wheelScrollTopTo(diffNum, cb) {
|
|
|
758
758
|
}
|
|
759
759
|
|
|
760
760
|
const { log } = VxeUI;
|
|
761
|
-
const tableVersion = `table v${"4.20.
|
|
761
|
+
const tableVersion = `table v${"4.20.11"}`;
|
|
762
762
|
function createComponentLog(name) {
|
|
763
763
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : '';
|
|
764
764
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -20734,6 +20734,18 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
20734
20734
|
}
|
|
20735
20735
|
const { editConfig } = props;
|
|
20736
20736
|
const { formatter, editRender, cellRender } = column;
|
|
20737
|
+
let etOpSize = null;
|
|
20738
|
+
let etOgSize = null;
|
|
20739
|
+
let clOpSize = null;
|
|
20740
|
+
let clOgSize = null;
|
|
20741
|
+
if (editRender) {
|
|
20742
|
+
etOpSize = editRender.options ? editRender.options.length : 0;
|
|
20743
|
+
etOgSize = editRender.optionGroups ? editRender.optionGroups.length : 0;
|
|
20744
|
+
}
|
|
20745
|
+
if (cellRender) {
|
|
20746
|
+
clOpSize = cellRender.options ? cellRender.options.length : 0;
|
|
20747
|
+
clOgSize = cellRender.optionGroups ? cellRender.optionGroups.length : 0;
|
|
20748
|
+
}
|
|
20737
20749
|
// formatter > tableCellFormatter
|
|
20738
20750
|
const renderOpts = formatter ? null : (editConfig && isEnableConf(editRender) ? editRender : (isEnableConf(cellRender) ? cellRender : null));
|
|
20739
20751
|
const compConf = renderOpts ? renderer$1.get(renderOpts.name) : null;
|
|
@@ -20752,7 +20764,8 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
20752
20764
|
formatData = fullAllDataRowIdData[rowid].formatData = {};
|
|
20753
20765
|
}
|
|
20754
20766
|
if (rowRest && formatData[colid]) {
|
|
20755
|
-
|
|
20767
|
+
const ftValue = formatData[colid].value;
|
|
20768
|
+
if (ftValue && ftValue[0] === cellValue && ftValue[1] === etOpSize && ftValue[2] === etOgSize && ftValue[3] === clOpSize && ftValue[4] === clOgSize) {
|
|
20756
20769
|
return formatData[colid].label;
|
|
20757
20770
|
}
|
|
20758
20771
|
}
|
|
@@ -20784,7 +20797,8 @@ var VxeTableComponent = defineVxeComponent({
|
|
|
20784
20797
|
cellLabel = tcFormatter(renderOpts, formatParams);
|
|
20785
20798
|
}
|
|
20786
20799
|
if (formatData) {
|
|
20787
|
-
|
|
20800
|
+
const ftValue = [cellValue, etOpSize, etOgSize, clOpSize, clOgSize];
|
|
20801
|
+
formatData[colid] = { value: ftValue, label: cellLabel };
|
|
20788
20802
|
}
|
|
20789
20803
|
}
|
|
20790
20804
|
return cellLabel;
|
|
@@ -31748,12 +31762,13 @@ var VxeGridComponent = defineVxeComponent({
|
|
|
31748
31762
|
else {
|
|
31749
31763
|
let tableData = [];
|
|
31750
31764
|
if (rest) {
|
|
31765
|
+
const listProp = resConfigs.list;
|
|
31766
|
+
const resultProp = resConfigs.result;
|
|
31751
31767
|
const reParams = { data: rest, $table: $xeTable, $grid: $xeGrid, $gantt: null };
|
|
31752
31768
|
if (pagerConfig && isEnableConf(pagerOpts)) {
|
|
31753
31769
|
const totalProp = resConfigs.total;
|
|
31754
31770
|
const total = (XEUtils.isFunction(totalProp) ? totalProp(reParams) : XEUtils.get(rest, totalProp || 'page.total')) || 0;
|
|
31755
31771
|
tablePage.total = XEUtils.toNumber(total);
|
|
31756
|
-
const resultProp = resConfigs.result;
|
|
31757
31772
|
tableData = (XEUtils.isFunction(resultProp) ? resultProp(reParams) : XEUtils.get(rest, resultProp || 'result')) || [];
|
|
31758
31773
|
// 检验当前页码,不能超出当前最大页数
|
|
31759
31774
|
const pageCount = Math.max(Math.ceil(total / tablePage.pageSize), 1);
|
|
@@ -31762,7 +31777,6 @@ var VxeGridComponent = defineVxeComponent({
|
|
|
31762
31777
|
}
|
|
31763
31778
|
}
|
|
31764
31779
|
else {
|
|
31765
|
-
const listProp = resConfigs.list;
|
|
31766
31780
|
if (XEUtils.isArray(rest)) {
|
|
31767
31781
|
tableData = rest;
|
|
31768
31782
|
}
|